1. Bug in OE4.1/Edita
- Posted by petelomax Apr 19, 2014
- 1113 views
I narrowed this down. es.ew contains:
global sequence ListOfStructures = {12} global function sizeof(integer id) return ListOfStructures[id] end function
and ea.exw contains:
include es.ew ?{sizeof(1),ListOfStructures[1]}
Running eui ea displays {0,12}, which should of course be {12,12}. Running eui displays
Euphoria Interpreter v4.1.0 development 32-bit Windows, Using System Memory Revision Date: 2014-01-29 16:00:14, Id: 6191:2c379fb63e74That's as far as I can go. I tried to create a ticket but got "Column count doesn't match value count at row 1" whatever that means.
Pete
Edit: forgot to say: it works if you merge that into a single source file.
2. Re: Bug in OE4.1/Edita
- Posted by mattlewis (admin) Apr 21, 2014
- 1134 views
I narrowed this down. es.ew contains:
global sequence ListOfStructures = {12} global function sizeof(integer id) return ListOfStructures[id] end function
and ea.exw contains:
include es.ew ?{sizeof(1),ListOfStructures[1]}
Running eui ea displays {0,12}, which should of course be {12,12}. Running eui displays
Euphoria Interpreter v4.1.0 development 32-bit Windows, Using System Memory Revision Date: 2014-01-29 16:00:14, Id: 6191:2c379fb63e74That's as far as I can go. I tried to create a ticket but got "Column count doesn't match value count at row 1" whatever that means.
Pete
Edit: forgot to say: it works if you merge that into a single source file.
In 4.1, there is a new built in sizeof() function. This is for determining the size of C data types (C_LONG, C_POINTER, etc). It's also planned for determining the size of memstructs, when those become available. Putting the function in the file causes that to be called instead of the built-in version. You could alternatively use a namespace qualifier to specify your sizeof() function.
Matt