Extern Type

BlitzMax Forums/BlitzMax Programming/Extern Type

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 :)