help-gnustep
[Top][All Lists]
Advanced

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

Re: About "@class"


From: Nicola Pero
Subject: Re: About "@class"
Date: Thu, 13 Jun 2002 08:49:46 +0100 (BST)

> Hi,
> I want to use the gcc 3.0.2 to compile the objective c code.
> But the compile does not think following code is correct:
> 
> @class NSCell <NSCopying, NSCoding>;
> @class NSFont <NSCopying, NSCoding>;
> 
> The error message is 
> ClassA.m:2: parse error before '<' token
> 
> But this code is used in openstep, what's wrong?

You should use 

@class NSCell;
@class NSFont;

specifying a protocol here has no utility (and it's forbidden by the
Objective-C syntax).




reply via email to

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