🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

internal subprograms inside a class implementation

#162
From: jncs
Date: Mon, 26 Nov 1990 00:15
11 lines
996 bytes
I am using Objective-C in the NeXT, and I'm learning as I go. I have a simple
question which I hope many of you have run into. I have been trying to define
an "internal" function (ie, not declared in the interface file) inside the
implementation file for a class. In this function I access an instance variable.
The message I get is that the instace variable has not been declared. Thus, it
seems that the scope of instance variables is limited to the body of the
methods. Is there a way to access instance variable in the implementation file?
In general, what is the scope of instance variables in the implementation file?

Thanks
J. Nino
Technical Details
Message-ID: <00940412.529FBDA0@uno.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!JNCS@uno.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!JNCS@uno.edu
From: jncs@uno.edu
Newsgroups: comp.lang.objective-c
Subject: internal subprograms inside a class implementation
Message-ID: <00940412.529FBDA0@uno.edu>
Date: 26 Nov 90 00:15:29 GMT
Sender: news@rex.cs.tulane.edu
Reply-To: jncs@uno.edu
Lines: 11