[Seaside] isolate: not working properly

radoslav hodnicak rh at 4096.sk
Thu Sep 23 17:04:18 CEST 2004


On Wed, 22 Sep 2004, Avi Bryant wrote:

> The problem, ultimately, is that I'm lazily initializing the
> "decoration" StateHolder in WAComponent.  I knew this was risky, but
> had convinced myself that it would always work.  But you found a case
> where it didn't; thanks.  Lesson: *never* use lazy initialization for
> StateHolders, even if you think you know what you're doing.

You can count on me to break almost anything I use (just for the record,
so far you manage to fix bugs faster than Alan in Glorp :-))

> So what I've got now is:
>
> WAComponent class>>new
> 	^ self basicNew initializeDecoration initialize
>
> But that doesn't feel like a great solution either.
> Comments?

Looks ok to me, perhaps with "initializeDecoration; initialize"

rado



More information about the Seaside mailing list