Re: EXACT meaning of 2 error messages
- Posted by ghaberek (admin) Jul 14, 2015
- 1643 views
eddo said...
From what I understand, Euphoria is giving me a "type is expected here" error because it thinks its within the parameter list of a function declaration.
That's not entirely true. The following is a perfectly valid Euphoria program. It does nothing, but it's valid code and it runs and exits immediately.
sequence typo
As you can see the type is declared first. So when the interpreter sees an identifier it does not recognize its first assumption is, "did you mean to put a type here?"
-Greg