gnustep-dev
[Top][All Lists]
Advanced

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

Re: "Modern" server socket programming?


From: Marcus Müller
Subject: Re: "Modern" server socket programming?
Date: Tue, 8 Jan 2013 18:08:56 +0100


On 08.01.2013, at 18:02, Chan Maxthon <address@hidden> wrote:

You can mix ARC and non-ARC code, given that those code are placed in separate files, then link them together. So you can safely implement the missing link in ARC code using Objective-C categories, and link them together with non-ARC GNUstep and your project in ARC.

Sure, but that's not the problem here. The problem is that when you #import "ULINetSocket.h" (in your ARC-ready code), you also drag in references to <CoreFoundation/CoreFoundation.h> from the same code, which gives you something like this:

In file included from ./ULINetSocket.h:34:
In file included from /usr/local/include/CoreFoundation/CoreFoundation.h:36:
In file included from /usr/local/include/CoreFoundation/CFBundle.h:31:
In file included from /usr/local/include/CoreFoundation/CFURL.h:34:
/usr/local/include/CoreFoundation/CFString.h:538:15: error: ARC forbids Objective-C objects in structs or unions
  CFStringRef theString;


Of course you could get rid of the requirement for CoreFoundation.h in ULINetSocket.h by masking all CF-refs to something opaque (void *), but then again, there's other CF-code missing and so on. Lot's of work, but nothing to gain here.

Cheers,

  Marcus

-- 
Marcus Müller  .  .  .  http://www.mulle-kybernetik.com/znek/



Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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