Movatterモバイル変換
[0]ホーム
Deprecate self
Martin von Loewisloewis 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 formessage sent to itself, and required not to use self for instancevariables:name "Answer the name of the file identified by the receiver" ^nameRegards,Martin
More information about the Python-listmailing list
[8]ページ先頭