[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANN: libobjc2 1.1
From: |
Jens Ayton |
Subject: |
Re: ANN: libobjc2 1.1 |
Date: |
Thu, 13 Jan 2011 22:23:30 +0100 |
On Jan 11, 2011, at 12:51, David Chisnall wrote:
>
> GNUstep Objective-C Runtime 1.1
The implementation of objc_msgSend() is slightly worse than useless, and I
suggest removing it. There are two problems:
* As far as I can see, it's trying to call a struct pointer as a function. Last
I checked, this wasn't very reliable.
* Unless you're calling a method which takes no parameters and returns an
object, it is necessary to typecast objc_msgSend to the appropriate signature,
and you can't cast a statement expression. The ... is just there to confuse and
frustrate people. Any working use of objc_msgSend() except trivial test cases
won't work with a macro implementation.
Also, the comment for struct objc_property in properties.h ends partway through
a word.
--
Jens Ayton