2009/12/25 Stéphane Ducasse <[email protected]>:
> I'm just developing a real package class.
> And I keep class names because the classBuilder can recreate class instances 
> under my foot....
> So I can do
>        aPack addClassNamed: aName
>
>        aPack addClass: aClass   (my favorite solution)
>

i made own draft package classes, and my favorite is:

add: object

        "Add object to receiver contents"
        (self includes: object) ifTrue: [ ^ object ].
        (self canInclude: object) ifFalse: [ ^ self error: 'Given object
can''t be included into package' ].
        ^ contents add: object.

;)

If you want , i can send you the code, maybe some of my ideas would be useful.

> Stef
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to