mulle-objc-runtime icon indicating copy to clipboard operation
mulle-objc-runtime copied to clipboard

_param is unavailable when void * -only parameter passing is used

Open mulle-nat opened this issue 1 year ago • 0 comments

The compiler should somehow then alias the only named parameter as _param, so that forwarding code can be written more uniformly, without having to think about types (in this case).

OK

- (void) foo:(double) x
{
   mulle_objc_object_call( self, @selector( bar:), _param);
}

Not OK (at the moment)

- (void) foo:(void *) x
{
   mulle_objc_object_call( self, @selector( bar:), _param);
}

mulle-nat avatar Aug 26 '22 10:08 mulle-nat