Hi list, I learned something fun today from a friend, how to make
Pharo produce random garbage!
Make a class AC which is defined as:
Object subclass: #AC
instanceVariableNames: 'a'
classVariableNames: ''
poolDictionaries: ''
category: 'OB-Standard-Browsers'
Then you make a second class AB defined as:
Object variableByteSubclass: #AB
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'OB-Standard-Browsers'
Then you make accessors for 'a' in AC
Now execute: AB superclass: AC
And then you do "AB new a" which gives you back random data.
Cheers,
Niko
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project