$z Fields in Extern Types?

BlitzMax Forums/BlitzMax Programming/$z Fields in Extern Types?

Gabriel(Posted 2007) [#1]
Where an Extern'ed type uses a char* as a class/struct member, can I use a $z field as in an Extern'ed Type or do I have to set it as a byte ptr and retrieve the string from there manually?

There's not much info on extern'ed types, so I thought I'd better ask. I'm assuming no, because there would be nowhere for BlitzMax to put the string. Moreover, if it did add the string automatically, it would unalign subsequent fields, breaking the whole purpose of extern'ed types.

But hey, doesn't hurt to ask.


MrCredo(Posted 2007) [#2]
hm.. i think $z are used for functions...