Re: Private constants in Eu 4.0
- Posted by mattlewis (admin) Jan 20, 2009
- 931 views
I would like to point to a problem using privat constants with Eu 4.0 (rev
I think there are several places with IDE using the int type where the same problem happens. Although I changed almost all symbols int to integer I forgot some in FList.ew. Using this code in FList.ew:
[snip]
D:\Euphoria\IDE105\FList.ew:269 in function SetFlag()
A machine-level exception occurred during execution of this statement
... called from D:\Euphoria\IDE105\FList.ew:1052 in function FList()
... called from D:\Euphoria\IDE105\includes\ide_code.ew:1670
> See ex.err
Press Enter...
line 1052 in function in my Flist.ew shows this:
Dummy[D_FLFlags] = SetFlag(Dummy[D_FLFlags], FL_Enable)
Dummy[D_FLFlags] = integer is printed (1), FL_Enable = int crashes
D_FLFlags and FL_Enable are declared as constants somewhere about line 175 in FList.ew.
What is the difference if I use constants with integer instead of type int?
Interesting...do you happen to know the last version that worked? Most of the changes lately have been DEP related, so calling C-functions sets off a red flag for me (though as usual, it will probably turn out to be a red herring). I'll investigate deeper (though I'm not sure when, exactly, I'll be able to get to it). If possible, it would be a great help if you could reduce the failure to a minimal, independent test case.
Thanks again for the reports.
Matt