swarm-support
[Top][All Lists]
Advanced

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

Re: Class methods, instance variables, never the two shall mix?


From: Paul E. Johnson
Subject: Re: Class methods, instance variables, never the two shall mix?
Date: Fri, 02 Jun 2000 09:27:35 -0500

Gary Polhill wrote:
> 
> >
> > >>>>> "PJ" == Paul Johnson <address@hidden> writes:
> >
> > PJ> and it won't compile because the class method does not know
> > PJ> "self".
> >
> 
> Why would the class method not know self? Wouldn't "self" be the
> class in question? Or should one use something like "Self" in a class
> method?
> 
> Gary
>
Sorry, I did not explain it clearly the first time. The self did not
respond to getZone, as in [self getZone] inside a class method.  You are
right, there must be some kind of self there, but it can't do the things
an instance can do.

-- 
Paul E. Johnson                         email: address@hidden
Dept. of Political Science              http://lark.cc.ukans.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.



reply via email to

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