[graybeards] Simple Simula Example?

Tim Rowledge tim at sumeru.stanford.edu
Tue Oct 9 18:04:16 UTC 2001


Sergio Ruocco <sergio.ruocco at mlab.disco.unimib.it> is widely believed to have written:

> ...we can now create stackable objects of a particualr type, for example, 
> comples, by prefixing class complex
> 
> stack_member class complex (...);
> 	...
> 	end complex
> 
> specifies that the objects generated by
> 
> 	new complex
> 
> have all the atributes of stack_member, as well as the atribute of complex.
> In other words, thay are complex numbers that can be stacked.
What? You mean that you have to do special work to be able to push
objects? Ludicrous! How could anybody live such a dumb restricion. Why,
that would be as dumb as integers and floats not being proper objects!

tim
-- 
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Strange OpCodes: NBRM: Unconditional No BRanch Multiple





More information about the Squeak-dev mailing list