Re: time / update problem

Cheng-Chang Wu <[email protected]> Tue, 19 Jul 2005 15:19:32 -0700 (PDT)
Newsgroups gmane.comp.lang.eiffel.smalleiffel
Message-ID <[email protected]>

--- Frederic Merizen <[email protected]>
wrote:
> 
> TIME is an expanded class, so the qualified call
> 'c.never' returns a copy of 
> the attribute. The call to 'update' only updates the
> copy.
> 
> I'd say there's a dessign lesson here: "think twice
> before creating mutable 
> expanded classes" (such as TIME - but I do not
> intend to specifically 
> criticize TIME here. There may well be good reasons
> for this choice in the 
> case of TIME - maybe a performance tradeoff. I don't
> know for sure, I wasn't 
> on the team yet when that class was written.)
> 

How can we set the initial value of a user defined
immutable expanded type to a value different from the
default value?

Cheng-Chang Wu