Re: type string
Daniel Berstein <daber at PAIR.COM> wrote:
>>Um...this routine allows the "string" to be a sequence of floating-point
>>values...
>>
>>? string5({2.71828, 3.14159}) -- returns TRUE!
>
>Yes, I know. Try this:
>
>sequence s
>
>s="hello world\n"
>puts(1,s)
>s+=0.5
>puts(1,s)
>
>Empirically I assumed fp numbers ARE valid characters in Euphoria.
Ah, I see. I wasn't sure if allowing fp char values was intentional on your
part. My mistake.
>Sequence subscripts act the same, very consistent implementation Rob :)
You're right, it *is* good that Euphoria is consistent in its treatment of
both string chars and sequence subscripts (allowing them to be fp values).
But I guess I'm still puzzled as to why Euphoria even does this. Can anyone
elighten me here as to how this makes sense?
-- Gabriel Boehme
|
Not Categorized, Please Help
|
|