Re: Standard Lib Func for string type?
- Posted by DerekParnell (admin) Apr 20, 2009
- 832 views
Ok, the v4 standard library (std/types.e) now also has the types ...
- ascii_string
- string
- sequence_array
-- examples ascii_string AS AS = "abc" -- ok AS = {65, 89, 201} -- fails as 201 is not an ASCII character. AS = 'a' -- fails (not a sequence) AS = {65, 89, 100.2} -- fails as 100.2 is not a character. AS = {"abc"} -- fails string STR STR = "abc" -- ok STR = {65, 89, 201} -- ok STR = 'a' -- fails (not a sequence) STR = {65, 89, 100.2} -- fails as 100.2 is not a character. STR = {"abc"} -- fails