views:

23

answers:

1

Large part of squeak is implemented using squeak itself. I am curious to know if pseudo variables such as self or true are also implemented using squeak. If the answer is yes, where the implementation located?

Specifically, assume that I want to add new subclass of "Boolean" called "Other" which will represent a third option: neither true nor false. I want that other, the only instance of Other to be similar to the true/false global singletons.

Any ideas? Thank you.

+2  A: 

Make it a global:

Smalltalk at: #other put: Other new
Lukas Renggli