T.R | Title | User | Personal Name | Date | Lines |
---|
509.1 | | DECC::OUELLETTE | mudseason into blackfly season | Mon May 05 1997 09:31 | 10 |
| Does your callee return a structure by value?
In that case a0 is reserved for a pointer to the storage.
Is the member function not static?
In that case it takes a "this" pointer in a0 and all of
the other arguments get bumped up one slot (including
the struct by value return).
The struct by value thing only gets done for structs
larger than 8 bytes.
R.
|
509.2 | | MERDA::BECASSIDY | | Mon May 05 1997 10:35 | 10 |
| >>Does your callee return a structure by value?
No, void.
>>Is the member function not static?
The member function is not static. If it were, the bliss routine wouldn't be
able to call it, right?
Bill
|
509.3 | | MERDA::BECASSIDY | | Mon May 05 1997 12:03 | 10 |
| >>In that case it takes a "this" pointer in a0 and all of
>>the other arguments get bumped up one slot (including
>>the struct by value return).
Aha! by casting "this" to a char * I was able to see my string. Defining
my function as a friend, rather than a member gets me through.
Thanks.
Bill
|
509.4 | | DECCXL::OUELLETTE | mudseason into blackfly season | Mon May 05 1997 12:48 | 8 |
| Static member function. Not static function.
Static member functions are member functions which don't take a this pointer.
They have external linkage.
A friend function is probably what you want & you noticed that in .3.
R.
|