Re: time / update problem
Philippe Ribet <[email protected]> Wed, 20 Jul 2005 08:01:34 +0200
| Newsgroups | gmane.comp.lang.eiffel.smalleiffel |
|---|---|
| Message-ID | <[email protected]> |
Cheng-Chang Wu wrote: >--- 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 > > > default_create should do the work -- Philippe Ribet The README file said "Requires Windows 95, NT 4.0, or better." So... I installed it on Linux!