Hi Simon, There is no such method. But it would be easy to add (just send "aPackage classes select: #isTrait"). The reason for returning traits with the classes is that clients of PackageInfo typically expect "compilation units", i.e., a collection including traits. The naming, of course, is not optimal, and should be fixed in the long run. The problem is to do so without breaking the clients of PackagInfo. Cheers, Adrian On Nov 23, 2009, at 16:28 , Simon Denier wrote:
Hi there
When I run PackageInfo>>classes, I get both classes and traits defined in the package. So I can understand the need for a method retrieving all 'compilation units' (or behaviors) from a package, but is there no method to just retrieve the regular classes? Especially since there is a #externalTraits method.
-- Simon
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project