[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About "@class"
From: |
Richard Frith-Macdonald |
Subject: |
Re: About "@class" |
Date: |
Thu, 13 Jun 2002 06:50:02 +0100 |
On Thursday, June 13, 2002, at 02:30 AM, Huang Zhen wrote:
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?
It's not legal Objective-C
Checking in the reference produced by NeXT/Apple confirms that
@class may only be followed by a comma separated list of class names.
Protocol specifications are not permitted.