[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
some objc compilers allow class variables?
From: |
Paul Johnson |
Subject: |
some objc compilers allow class variables? |
Date: |
Thu, 23 Jan 2003 20:49:40 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 |
A user brought to my attention this claim in the objective-C faq
http://www.faqs.org/faqs/computer-lang/Objective-C/faq/
15.1 What's the syntax for class variables ?
List the class variables after the instance variables, and group them
together in the same way as instance variables, as follows :
@implementation MyClass : Object { id ivar1; int ivar2; } : { id cvar1; }
@end
This seems like a good feature to me, but appears only available with
the "Portable Object Compiler". Has anybody heard any discussion of
whether gcc might support this style someday?
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- some objc compilers allow class variables?,
Paul Johnson <=