gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSError as parameter to methods


From: Riccardo Mottola
Subject: Re: NSError as parameter to methods
Date: Sun, 31 Jan 2016 09:41:03 +0100
User-agent: Mozilla/5.0 (X11; NetBSD i386; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

Hi David,

On 01/29/16 13:28, David Chisnall wrote:
It would help to look at the code in question.  I suspect it’s to do with the 
fact that, with ARC, pointers to objects are implicitly cleared on creation, 
because every object pointer must either be nil or a valid object.

I surely can copy&paste a small section of code. However your answer says it all: the code is compiled with ARC on Mac, while I am compiling it without on GNUstep. This means that the code works correctly on Mac: the NSError is declared just one line before using it.

I leaves unanswered though if a method using NSError is expected to leave the previous content untouched or cleared to nil, in case of no error.

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]