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

[REBOL] Re: rebol's code evaluation... [was: MySQL protocol bug]

From: rotenca:telvia:it at: 19-Feb-2004 23:25

Hi, all
> >The way I see it is that any value which does not evaluate into an action
simply returns a clean version if itself. It is possible that some values get reduced or "corrected" as part of their evaluation, but I do not know how to call this behavior.
> > > >example: > >>> 2001-3-4 > >== 4-Mar-2001
the fact is that the Rebol loader "understands" many date formats, so you can pass to the loader the equivalent strings: 2001-3-4 2001-Mar-4 2001/Mar/4 and many others, the loader transform this strings in the (undocumented) internal representation of a Rebol date datatype. But when you mold it, like implicitly happens in your console example, Rebol must select one serialized format among the others, and the format selected is always: dd-mmm-yyyy I should like to select diffrent serialized formats for many Rebol values, like already happens for binary. x: #{0A} system/options/binary-base; == 16 x ;== #{0A} system/options/binary-base: 2 x ; == 2#{00001010} system/options/binary-base: 64 x ; == 64#{Cg==} For example i should like to do: system/options/decimals: "00,00" and then
>> 1.0
01,00 the same for dates, time, and so on. --- Ciao Romano