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

[REBOL] Re: Testing if a string is an integer?

From: g:santilli:tiscalinet:it at: 9-Dec-2000 23:10

Hello Garold! On 09-Dic-00, you wrote: GJ> The only answer I have is that 'some is recognized only by GJ> the parse dialect and not by REBOL: directly, and 'parse is a GJ> native! word. That is correct. SOME is a keyword in PARSE's dialect. GJ> A legal REBOL integer is a bit more complicated (FWIW): Yup. But I think someone was asking for how to detect if a string only contains digits. To test if a string is a valid REBOL integer, you can just do: integer? try [load string] Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/