[Seaside] Re: Using traits in Squeak / Seaside - Advice sought

Adrian Lienhard adi at netstyle.ch
Mon Sep 17 07:12:49 UTC 2007


On Sep 15, 2007, at 08:29 , Philippe Marschall wrote:
>
> Besides the tool issues there are other issues as well. There is
> somewhere a bug in ClassBuilder and every trait in the image ends up
> with each user twice.

That's wrong. New traits don't have multiple users. There are  
existing traits in the image that have multiple users. They must have  
got there during the 3.9 process. How that happened has not been  
found out (as Philippe noted, its potentially a bug in the  
ClassBuilder). As said earlier, rehashing those sets gets rid of the  
duplicates.

> Also copy class doesn't work correctly for
> traits.

The problem here is that also methods from traits are copied, but  
like the bug above, its not a show stopper.

> It's likely that there are more bugs like this.

Right, but we woun't find them if we wait using traits. In my  
oppinion, the implementation of traits is stable enough for real use.  
I mean, part of the Squeak kernel is implemented with traits...  
Rather a limiting factor is UI support. Although various pleople have  
been working traits aware tools and extensions, there is missing a  
coherent and maintained package.

Adrian


More information about the seaside mailing list