Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!news.kei.com!nntp.coast.net!torn!nott!cunews!dbuck
From: dbuck@superior.carleton.ca (Dave Buck)
Subject: Re: beginner question
X-Nntp-Posting-Host: superior.carleton.ca
Message-ID: <DK0qHw.8HK@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University, Ottawa, Canada
References: <4bc64r$hkl@lfsserv1.fsc.ibm.com> <DJysFG.uA@cunews.carleton.ca> <4ben2o$9qo@master.ftn.net> <4bffo6$rio@watnews2.watson.ibm.com>
Date: Sat, 23 Dec 1995 02:49:08 GMT
Lines: 37

In article <4bffo6$rio@watnews2.watson.ibm.com>,
David N. Smith  <dnsmith@watson.ibm.com> wrote:
>In article <DJysFG.uA@cunews.carleton.ca> Dave Buck,
>dbuck@superior.carleton.ca writes:
>
>>Ok, now, suppose we change the above methods to actually return their
>>results.  
>
>Blush...

Thought you could fool me, eh?  :-)

>>(I almost hate to do this:)
>>From "Smalltalk-80 the Language and its Implementation" (p. 64)
>>The use of super as other than a receiver (for example, as an
>>argument), has not different effect from using self; the use of super
>>only affects the initial class in which the messages are looked up.
>
>OK. I've never seen it anywhere else that I recall. It must have stuck in
>the back of my head as a 'rule' without consious memory of why.  (There
>was that 6 month stretch in 1982 when I read a page or two or even three
>a night of the blue book and got more and more excited...)

I had to investigate this when someone asked me if you could cascade
to super and what it does.  eg.  super test1; test2.  It's amazing how
you sometimes think you completely understand a language and some
little nuance throws you.  I have this expression "super is the
second strangest thing in Smalltalk".  the strangest thing is blocks.

David Buck
dbuck@ccs.carleton.ca

_________________________________
| David K. Buck                 |
| dbuck@ccs.carleton.ca         |
| The Object People             |
|_______________________________|
