[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Class methods, instance variables, never the two shall mix?
From: |
Ralf Stephan |
Subject: |
Re: Class methods, instance variables, never the two shall mix? |
Date: |
Fri, 2 Jun 2000 12:42:47 +0200 |
Gary:
> Why would the class method not know self?
By definition, class methods are also callable when no instance
of a class (object) exists.
> Wouldn't "self" be the class in question?
This would be confusing, as then self is of a different type
/wrt self in member methods. Also, the class in question is
well known when writing the code.
ralf
--
http://ME.IN-berlin.de/~rws/
==================================
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.