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

[REBOL] R: Re: R: Re: switch and datatype

From: rotenca:telvia:it at: 17-Jul-2001 2:02

> Hello Romano! > > On 06-Lug-01, you wrote:
My answer is a little slow...
> RT> tipo: string! switch to-word mold tipo [string! [print > RT> "switched"]] > > Is there any reason you can't use: > > tipo: 'string!
yes: because it is calculated
> or > > tipo: type?/word value-to-check
I did not know this refinement! Thank You. It is the same answer of RT.
> Also, notice that: > > >> switch string! ["" [print "A-ha!"]] > A-ha!
I know: it is the same with Find, Select
> Regards, > Gabriele.
ciao romano