Mantis - Squeak
Viewing Issue Advanced Details
7770 Compiler minor always 06-19-13 09:49 11-20-15 11:13
vaidasd  
 
normal  
new 4.4  
open  
none    
none  
0007770: cascading does not work with super
Compiler refuses to compile
super
    initialize;
    setListProperties

Notes
(0014363)
FrankShearar   
06-19-13 09:54   
What do you expect this to mean? A cascade says "send this sequence of messages to the same object", so do you expect this to be equivalent to

  super initialize.
  self setListProperties.

?
(0014567)
Patrickr   
11-18-15 13:57   
For consistency reasons, I'd actually expect this to be equivalent to:

super initialize.
super setListProperties.

corresponding to:

self
  initialize;
  setListProperties.

and:

self initialize.
self setListProperties.

(0014577)
marceltaeumel   
11-20-15 11:10   
I would rather not support cascading for super sends because this might easily be overlooked when debugging. It is not only about sending messages to the same object but also modifying message lookup again and again.

Such code smells. :-/
(0014578)
krono   
11-20-15 11:13   
+1 Expected behavior, I'd say.