Re: Suboptimal error message
- Posted by Robert Craig <rds at RapidEuphoria.com> May 18, 2005
- 416 views
Juergen Luethje wrote: > Robert Craig wrote: > > "sequence" is not a keyword. You can declare a variable > > or constant called "sequence" (if you are insane ). > > So the syntax is ok up to that point. > > Uuhhh, I didn't know that. <scratching my head like Stan Laurel> > 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. 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