Deprecate self
Martin von Loewis
loewis at informatik.hu-berlin.de
Fri Apr 20 02:18:27 EDT 2001
whisper at oz.net (Dave LeBlanc) writes:
> Smalltalk never requres the declaration of self as an arguement to a
> method. self is only used to identify the target (variable or method
> invocation) as being local to the caller (i.e. in it's own class
> scope). It's been awhile, so I don't recall if it's mandatory in that
> context or not.
It's been a while for me as well, but: I thought it required self for
message sent to itself, and required not to use self for instance
variables:
name
"Answer the name of the file identified by the receiver"
^name
Regards,
Martin
More information about the Python-list
mailing list