MarkingKey

Niko Schwarz niko.schwarz at gmx.net
Mon Jun 10 20:25:40 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

In a lot of algorithms it is useful to have a marking key that is bigger than 
all other elements of a list or another data structure. In other languages 
you usually use maxInt and so on for that, but that is not appropriate for 
squeak. I was very surprised that I didn't see any in the class browser -- 
how come?
In fact there really isn't anything, I attached my fix for it.

Btw, can you help me out? In Java you have getters and setters. In ruby you 
have ? and plain methods. Whats the counterpart in squeak? I want to two 
methods that:
a) set a flag
b) return the flag.

I do not want one to toggle the flag, cos for that i have another method.
(I find a method called smallest: aBoolean ridiculous. I want two: smallest 
and biggest, one to write and one to read. How to do that?)

regards,

nick
- -- 
When God endowed human beings with brains, He did not intend to
guarantee them.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9BQtIc9uyCiO8RNQRAjtXAJ0cEOnS+iq++uvQpmhPC+h/SVpPtwCgr1rJ
wCDFt0at0OnAh00SdZZetg0=
=ZVnM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MarkingKey.st
Type: text/x-smalltalk-changeset
Size: 1278 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020610/a7dd314e/MarkingKey.bin


More information about the Squeak-dev mailing list