1. SEQUENCE SIZE

hI:
I am a student, and new to Euphoria.  I was experimenting with the 
language, and I notice that if I put in a sequence a long string,it 
refuses the string.

sequence story
story = "I walked toward the beach to watch the sunlight, when I was the 
flash at sea, I move close to see what it was, to my surprise it was a 
mermaid holding a mirror, while combing her hair................"

the editor says.. line too long

in visual basic, you can but this easily with no problem,
I tried breaking the string,,, but no good.
the manual says there is no limit to size.
No other string under 10 characters of this string has a problem.

is there a way to have a sequence containing bits like this to access 
from the program while keeping the size of the string intact?

I was trying to have several sequences containing strings, and then 
accessing them from the sequence

story[c]

--- c = 78  - story fragments

any ideas how to put a string that long?
or is there a better way?

I would appreciate the advice.
Many thanks
Martin

new topic     » topic index » view message » categorize

2. Re: SEQUENCE SIZE

On Fri, 10 Oct 2003 00:33:33 +0000, shepardmar at yahoo.com wrote:

sequence story
story =3D "I walked toward the beach to watch the sunlight, when I "&
"saw the flash at sea, I move close to see what it was, to my "&
"surprise it was a mermaid holding a mirror, while combing "&
"her hair................"

I had to ask that question too when I first started.

Regards,
Pete

new topic     » goto parent     » topic index » view message » categorize

3. Re: SEQUENCE SIZE

> I am a student, and new to Euphoria.  I was experimenting with the
> language, and I notice that if I put in a sequence a long string,it
> refuses the string.
As you've discovered, the maximum line length in EU source code is about 198
characters, so, as Pete mentioned, you'll have to concatenate, ( using & ),
to build up strings that require more 'line-space'.
Sequences can hold strings of any length, but Euphoria's
source-code-line-parser can't...

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu