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

[REBOL] Re: can't quite get it right...

From: rotenca:telvia:it at: 30-Dec-2002 12:41

Hi all,
> I take it tmp's just a leftover from an earlier version?
>I'd thought of that approach too It's good in that it'll handle issue! and >other data types -- you can remove the [Char! string!] from the spec
uppercase?: func [ch] [ any [any-string? ch ch: to-string ch] ch == uppercase copy ch ]
> But it returns 'true if there are non-letters in the input string: > > uppercase? "AA++" > == True
The function strictly means: "if the rebol uppercase function is applied to the string, does it remain unchanged?"
>Out of interest, are there any major overheads with a to-string >"string"? Just wondering if it is best to avoid it if you can, like >you've done above.
Only to not copy twice the string (speed/memory). --- Ciao Romano