Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: New Type of Variable

From: info:id-net:ch at: 22-Apr-2002 20:51

Has someone made an object to create special datatypes ?
> Phillipe, there is no way to add datatypes at this time. > The only way is to ask Rebol Technology to add your > datatype :) (But first you should run it through this list > to see what others think...) > > You could make an object to do something similar, though. > > Anton. >
Hi! I want to know if someone has an idea how to add datatypes. I like the idea of having for the pair datatype the /path x and y to extract the first and second part of the pair, besides the X. Same thing for time datatype, with /minute and hour refinement. Is it possible to make it the same easily for other "string". I.e. it should be interesting of having a x-number of part of a string separated by a symbol : 34,45,34,67,45,56 This "datatype" would be access like that : thestring/6 and the result will 45.. And the modification will be easy, too thestring/6: 23 This long introduction to say that I often use the parse and the join function to parse a string and then to rejoin only to change some of its componants.. If someone has a easy and reliable method to "add datatype" or something like that.. Philippe