Re: EOF and GOTO and 0th array element

new topic     » goto parent     » topic index » view thread      » older message » newer message

On  0, Derek Parnell <ddparnell at bigpond.com> wrote:
> 
> > 3.  in BASIC an array can be created with 0th (zeroth?) element in any
> > dimension, but I don't see how you can do that in a sequence.  Can one
> > set up a Euphoric equivalent to such an element in a sequence?
> 
> No. Euphoria uses a 1-based index philosophy. The first element in a series
> is always 1.
> 
> Oh, except for routine_id().

Yes, routine_id() starts at 0.

> 
> Oh, and open() as well.

open() starts at 3, I think. (0, 1, and 2 are stdin, stdout, and
stderr,
although the situation is slightly different with Linux due to ncurses.
(ncurses seems to like to redirect stdout to stderr on occasion, I'm
not sure
why, among other things.))

jbrown


-- 
Please don't use http://fastmail.fm
(I like feeling special.)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu