Re: Wrappers

new topic     » topic index » view thread      » older message » newer message

stab master wrote:

>I've thought about writing such a program myself. I have even written a very
>simple program that converts all #define:s to euphoria code, wich I used
>when converting the GL headers to euphoria.
>A really nice, and time-saving, feature would've been automatic
>function-linking (extern type name(type name)  becomes
>
>I figured one can do typedef-struct convertions like this:
>
>typedef struct tagName
>{
>char a;
>short b;
>unsigned int c;
>}Name;
>
>..becomes:
>
>--struct tagName
>--{
>   a = 0
>   b = 1
>   c = 3
>   SIZE_OF_Name = 7
>--}
>
>Ofcourse there's the problem of two or more structures having identical
>names for some member. Maybe that could be solved by using some sort of
>prefixing (?).

Eleventh chapter, seven hundred seventy seventh verse. Give me real
structure definitions for at least C type variables(but one does not have to
limit it to that area) for at least some type of definition of external objects
and the world will open to Euphoria. Add prefixing for name space problems,
and some kind of modularization and we may not need to get so excited
about Delphi around here. We may even be able to use Delphi as a real
cross-platform base...or whatever else we choose.

Rob, this has been asked directly about fifty times and hinted at by this
and other posts indirectly. What is your position on some method for
matching or mapping external structures without resort to peek and poke.
WILL WE EVER HAVE STRUCTURES OR NOT? IF SO, WHEN...2.3 OR
3.0 OR ...? THIS YEAR, NEXT YEAR...I know I'm shouting, but there is
so much stirring that could be so much more cleanly done with these
issues resolved. There is a whole community out here wandering around
in the dark, wondering where the heck we are headed. If you answered this,
my apologies. If you haven't,........PLEASE.

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu