1. version 3.1.1 Reporting wrong error

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

new topic     » topic index » view message » categorize

2. Re: version 3.1.1 Reporting wrong error

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: version 3.1.1 Reporting wrong error

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu