[bug] Compiler bug or feature?

Bert Freudenberg bert at impara.de
Mon May 8 15:42:41 UTC 2006


Am 08.05.2006 um 17:28 schrieb Michael Rueger:

> Hi all,
>
> did anybody ever try something like
>
> SmallInteger>>test: self
> 	^self
>
> 5 test: 7 -> 7
>
> same for nil etc.
>

Nice find. That allows to us to find really interesting answers:

whatIsTheAnswerTo: nil
	"self whatIsTheAnswerTo: 6*9"
	| true |
	true := nil printStringBase: 13.
	^true


> Python in Squeak? ;-)

See? We even had self-as-an-arg first ...

- Bert -




More information about the Squeak-dev mailing list