Original date:2017-01-19 11:48:21 Edited by: ghaberek Subject: Re: Project Leviathan - wxEuphoria 3.1.0 alpha1

petelomax said...
ghaberek said...

I was also thinking that the initialization function for the library could accept the callback addresses for the internal memory functions and then performs all of its memory activities that way. What are your thoughts on this?

Hmm. That puts me on the spot. It sounds reasonable and I might dare say there should be no real difference between exposing internals and providing externals. However I am slightly concerned it might feel a bit awkward, or worse introduce some low level fiddleiness, especially for any Phix/OpenEuphoria code that you want to compile into a dll/so. My gut feeling says that if it can be done without either, that would be my choice, but I might be missing something.

After pouring through the Euphoria and Phix source code for memory allocation, I think the best method to approach first is the one I described here. It requires the fewest changes to my existing code (not that there's much to change) and still allows wxEuphoria to accept and return Euphoria objects, which really streamlines the code. It's much easier to hand-assemble Euphoria objects in C that it is to allocate memory and build structures by hand in Euphoria. I will try this and report back.


Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu