1. Bug in OE4.1/Edita

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:2c379fb63e74 
That'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.

new topic     » topic index » view message » categorize

2. Re: Bug in OE4.1/Edita

petelomax said...

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:2c379fb63e74 
That'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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu