Rainer Deyke wrote:
> struct AlgebraicFunction {
> double getMaximum() {
This 'double' was obviously supposed to be 'Optional!double'.
> if (isNull(this.cachedMaximum)) {
> this.cachedMaximum = this.veryExpensiveCalculation();
> }
> return *this.cachedMaximum;
> }
>
> private Optional!(Optional!double) cachedMaximum;
> }
--
Rainer Deyke - [email protected]
