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 _______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
