Re: Minor bug found in 3.1 and previous

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

Igor Kachan wrote:
>  Robert Craig wrote:
>  > 
>  > Al Getz wrote:
>  > > 
>  > > --program:
>  > > constant x=1
>  > > x=2
>  > > --end program
>  > > 
>  > > --error message:
>  > > C:\Euphoria\Projects\Test\test.exw:2
>  > > x has not been declared
>  > > x=2
>  > > ^
>  > > 
>  > > Press Enter
>  > > --end message
>  > > 
>  > > 
>  > > Error message should be "May not change the value of a constant",
>  > > or something like that.
>  > 
>  > Yes, that would be a better message.
>  > You've caught the parser and scanner at an awkward moment.
> 
> [snip]
> 
> Rob, why not just to change the error message as:
> 
> x has not been declared or it is a constant already
> 
> ???

That would help in 1% of the cases,
while making the other 99% slightly more confusing.
I don't think that would be a good idea.

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