Re: Minor bug found in 3.1 and previous
- Posted by Igor Kachan <kinz at peterlin?.ru> Jul 08, 2007
- 582 views
Robert Craig wrote: > 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. Rob, my percentage is -- 100% of these errors are covered by interpreter, it is better thing to explain the sence of a correct error message than to explain all those guts of parser and scanner to poor user every time in 1% of the cases, I think Just my $0.02. Regards, Igor Kachan kinz at peterlink.ru