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

[REBOL] Re: Case comparison?

From: joel:neely:fedex at: 14-Oct-2001 16:30

Hi, Hallvard, Hallvard Ystad wrote:
> But then: > >> a-string: "STRING" > == "STRING" > >> type? first next a-string > == char! > >> (first next a-string) = #"t" > == false > >> (first next a-string) = #"T" > == true > > Is char! not considered a string-based datatype? >
To the best of my knowledge, no. String-based datatypes include those whose values are really strings with special semantics, such as URLs, filenames, and email addresses, AFAIK. -jn- -- ; sub REBOL {}; sub head ($) {@_[0]} REBOL [] # despam: func [e] [replace replace/all e ":" "." "#" "@"] ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"} print head reverse despam "moc:xedef#yleen:leoj" ;