Re: Minor bug found in 3.1 and previous
- Posted by Robert Craig <rds at RapidE?phoria.com> Jul 08, 2007
- 586 views
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