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

[REBOL] Re: Beginner's automatic type conversion

From: laurent:giroud:libertysurf at: 24-Sep-2002 22:05

Monday, September 23, 2002, 2:26:53 AM, Andrew Martin wrote :
>> However, I thought that it would be more flexible to act as if I did not > know in advance what the type of elements was. > Best solution is to use 'load, which will translate the string into rebol > values.
Many thanks you for your answers ! I was thinking that there would be a completely different solution so I'm quite glad to have found a not-so-bad one ;) I had not thought to use 'load since I did not grasp exactly (although my first message on the list was about a 'load related problem...) what it was doing. Now as I understand it, it translates data to rebol internal format, simplifying string values to the closest data types who match but does not evaluate them. So I presume that 'do internally calls 'load to convert raw data to rebol form before actually evaluating it, is that right ? Regards, Laurent -- Laurent Giroud [laurent--giroud--libertysurf--fr]