Extern Type

BlitzMax Forums/BlitzMax Programming/Extern Type

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

im curious about the padding as well since the DX mod does not seem to have the pad definitions?

also, i have a Q about return types. how do you return an instance instead of a pointer? given:

--- C++ ---

class Ttest1{
public:
virtual Ttest2* testret1(){return new Ttest2;}
virtual Ttest2 testret2(){Ttest2 retval; return retval;}
}

-----------

i believe i would define my extern for testret1() which returns a pointer as:

Type Ttest1
method testret1:Ttest2()
EndType

the extern typing is setup to return pointers (i think), but how do you define testret2 which doesnt return a pointer? or am i misunderstanding and my extern type should look like:

Type Ttest1
method testret1:Ttest2 Ptr()
method testret2:Ttest2()
EndType

thx :)