Re: Suboptimal error message

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

Juergen Luethje wrote:
> Robert Craig wrote:
> > "sequence" is not a keyword. You can declare a variable
> > or constant called "sequence" (if you are insane smile).
> > So the syntax is ok up to that point.
> 
> Uuhhh, I didn't know that. <scratching my head like Stan Laurel> blink
> Wouldn't it be better not to allow things like that? Or would that
> require heavy changes of the interpreter?
> Of course, disabling that in a future Eu version can break existing
> code, but only code that should be rewritten anyway. blink

It actually makes some sense.
Types in Euphoria are defined via special 1-parameter functions.
So "sequence" is really a kind of pre-defined function, e.g.
   if sequence(x) then ...
though most people tend to think of it as a reserved keyword.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu