About true and false creation
Tim Rowledge
tim at sumeru.stanford.edu
Mon Mar 3 18:57:34 UTC 2003
Marcus Denker <marcus at ira.uka.de> wrote:
> It's not created using new:
>
> Boolean class has:
>
> new
> self error: 'You may not create any more Booleans - this is
> two-valued logic'
Ah, but you _can_ do myTrue := True basicNew and get a valid instance.
Won't do you very much good though, since the vm & compiler have very
firm ideas about the identity of true and false.
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Strange OpCodes: COMB: Straighten Wires
More information about the Squeak-dev
mailing list
|