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

[REBOL] Re: Translate this code into real Rebol?

From: sunandadh:aol at: 23-Jan-2002 10:51

Hi Joel,
> I can't resist a good refactoring exercise... ;-) <snip> > Thanks for the interesting puzzle!
Thanks for the ideas. It is always good to see how other people would do something. I find that very useful. It's a bit like having your pronunciation corrected when learning another language. Fess-up time. My original code had the inevitable bug, only--as usual--noticed too late. If you change decimal-sep and thousands-sep, eg: thousands-sep: "." decimal-sep: "," it goes wrong because it assumes Rebol is using the same decimal-sep internally. Of course it isn't. I still need a literal "." for handling the decimal while it's still a number. Sunanda.