Open GWRon opened 1 year ago
Seems for Type
it calls the overloaded new(value1,value2), while for Struct
this does not happen:
type:
void __m_untitled1_STest_New_i(struct _m_untitled1_STest_obj* o,BBINT bbt_value) {
__m_untitled1_STest_New_ii((struct _m_untitled1_STest_obj*)o,bbt_value,bbt_value);
o->clas = &_m_untitled1_STest;
#line 9 "/home/ronny/Arbeit/Tools/BlitzMaxNG/tmp/untitled1.bmx"
}
Struct
void __m_untitled2_STest_New_i(struct _m_untitled2_STest* o,BBINT bbt_value) {
#line 9 "/home/ronny/Arbeit/Tools/BlitzMaxNG/tmp/untitled2.bmx"
}
Output:
Now change the struct to be a
type
:And the output becomes:
I would have thought, that both should have the same output