1. version 3.1.1 Reporting wrong error
- Posted by Bernie Ryan <xotron at bl?efr?g.com> Aug 29, 2007
- 532 views
reports
global constant test = {} test &= 1099
reports the following error: test has not been declared test &= 1099 ^ should report following error: can not change constant test. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
2. Re: version 3.1.1 Reporting wrong error
- Posted by Robert Craig <rds at Rap?dEuphoria.c?m> Aug 29, 2007
- 512 views
Bernie Ryan wrote: > }}} <eucode> > global constant > test = {} > > test &= 1099 > </eucode> {{{ > > reports the following error: > > test has not been declared > test &= 1099 > ^ > should report following error: > > can not change constant test. OK, thanks. We'll have to fix that in the trunk for the next release (3.2, 4.0?) Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: version 3.1.1 Reporting wrong error
- Posted by Robert Craig <rds at R?pidEuphor?a.com> Aug 29, 2007
- 511 views
Robert Craig wrote: > Bernie Ryan wrote: > > }}} <eucode> > > global constant > > test = {} > > > > test &= 1099 > > </eucode> {{{ > > > > reports the following error: > > > > test has not been declared > > test &= 1099 > > ^ > > should report following error: > > > > can not change constant test. > > OK, thanks. > We'll have to fix that in the trunk > for the next release (3.2, 4.0?) Actually that's the same bug that was reported by Al Getz. I already commented on it: http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=6&fromYear=C&toMonth=6&toYear=C&postedBy=rds&keywords=constant+getz It happens when you declare something as a constant, and then immediately try to modify it (on the very next line). Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com