Re: -performSelector: exception... in one build configuration
Re: -performSelector: exception... in one build configuration
- Subject: Re: -performSelector: exception... in one build configuration
- From: Christiaan Hofman <email@hidden>
- Date: Fri, 04 Nov 2011 19:44:47 +0100
On Nov 4, 2011, at 18:52, David Duncan wrote:
> On Nov 4, 2011, at 10:32 AM, Scott Ribe wrote:
>
>> On Nov 4, 2011, at 10:57 AM, David Duncan wrote:
>>
>>> If the source file is Obj-C++ it would work (because C++ would arrange for it to do so).
>>>
>>> But even in that case I don't know why it would fail...
>>
>> Is it guaranteed to give the right result at static init time?
>
>
> I don't know actually. This may in the end be the fundamental issue.
> --
> David Duncan
>
If one doesn't know one shouldn't assume it. And I am pretty sure it's not explicitly guaranteed, while I see no general reason why it should not come too early. The fact that it isn't even allowed in pure obj-c is a good indication that you should not count on it. Moreover, it's clear that in this case it does initialize to the wrong pointer value.
Christiaan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden