Traits question

Damien Cassou damien.cassou at gmail.com
Mon Dec 17 12:21:13 UTC 2007


2007/12/15, itsme213 <itsme213 at hotmail.com>:
> How are Traits and Monticello supposed to work together?
>
> e.g. With Monticello I (expect to) add methods to others' classes, while
> managing and versioning these methods in my package.
>
> Object>>myMethod1
> Object>>myMethod2
>
> If I have #myMethod1/2 in a trait, can I apply them to the Object class and
> still have them Monticello-managed correctly in my package?

If I understand correctly, there is no problem if you own both the
package containing the class and the package containing the trait. For
example, Nile (http://www.squeaksource.com/Nile/) is based on traits
and there is no problem with Monticello. Monticello takes care of
traits as if they were class definitions and also remembers what
traits a class uses.

Does that answer your question?

-- 
Damien Cassou



More information about the Squeak-dev mailing list