🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.objective-c
Article #69

instance variable declarations..

#69
From: Mark A. Semich
Date: Sun, 30 Aug 1992 16:13
19 lines
1269 bytes
I'm just starting working w/ Obj-C, so I've got a beginner's question:

Why is it that instance variables are declared in an object's
@interface portion (interface file) while an object's method's are in
the @implementation portion (implementation file)?

I had kind of pictured the interface file as akin to a prototypes
file, while the implementation file contained the actual code.  Since
instance variables are private data, it seems to me that they should
be declared in the implementation file (along with the methods) rather
than the interface file.

--
===========================================================================
                "I used to be a design but now I'm a tree."
--   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   --
mark a. semich                                               mas@csa.bu.edu
===========================================================================
Technical Details
Message-ID: <MAS.92Aug30121306@csa.bu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!wupost!sdd.hp.com!decwrl!bu.edu!nntp-read!mas

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!wupost!sdd.hp.com!decwrl!bu.edu!nntp-read!mas
From: mas@csa.bu.edu (Mark A. Semich)
Newsgroups: comp.lang.objective-c
Subject: instance variable declarations..
Message-ID: <MAS.92Aug30121306@csa.bu.edu>
Date: 30 Aug 92 16:13:06 GMT
Sender: news@bu.edu
Organization: The Internet
Lines: 19