[squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest)

George Herolyants george.herolyants at gmail.com
Fri Mar 5 17:52:21 UTC 2010


2010/3/5 Michael van der Gulik <mikevdg at gmail.com>:
> It sounds like Java-style Interfaces should be implemented.
>
> (anObject implements: AnInterface) ifTrue: [ ... ]

What about traits in this role?

anObject implements: TDoable. ...or...
anObject supports: TDoable. ...or even...
anObject isA: TDoable


George



More information about the Squeak-dev mailing list