Re: Learning Euphoria
>Is {} and "" the same as ASCII 0 or NUL?
Kinda like NUL. Well, try looking at it this way:
"AAAA" is the same as {65, 65, 65, 65}
"" is the same as {}
length("AAAA") is equal to 4
length("") is equal to 0
For strings, it can be considered a NUL string. But it isn't the same as
ASCII 0. The atom 0 is equal to ASCII 0 (Or NUL).
In BASIC, a NULL string is pretty much the same as a zero length sequence
({})
(Technically, it can be argued otherwise, I guess...)
Ok, in short, no, they don't.
|
Not Categorized, Please Help
|
|