Class Extensions ?

Ned Konz ned at bike-nomad.com
Thu Apr 3 23:25:53 UTC 2003


On Thursday 03 April 2003 04:35 pm, Georgi Kolev wrote:

> Does Squeak support class extensions as in VAST? Is it possible to
> add new method to a class in category different than the one where
> the class is defined?

Yes.

If you're using DVS, there is a convention for marking such methods; 
you use the package name as a prefix to the method category.

For instance, if I have a package

NedsNewPackage

then any extensions outside of class categories that start with 
"NedsNewPackage" must be in method categories whose names begin with 
"*nedsnewpackage-".

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list