Re: Structures in 4.0?

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...

Should we write something? I always thought it'd be nice to have a native structure-handling library. It would go hand-in-hand with dll.e. I mean, at least half the dll functions we link to use structures, right?

-Greg

The ability to pass a C struct by value (rather than via a pointer) would be a huge boon to the current C interface. So would being able to take a C struct as a return value (rather than a pointer to said struct).

A native struct library should also be able to tell us the sizes of native C types (e.g. sizeof(int), sizeof(char), sizeof(short), sizeof(long)) rather than having us assume that it will always be 4, 1, 2, 4, etc.

Without these two features, I don't see the advantage of a native struct library over the existing 3rd party struct libraries.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu