|
Ian
You wrote in message news:nP36a.6773$Lq.524790@stones...
> Relatively minor and a bit cosmetic but I don't think the above method
> should really be responsible for deciding if the library should be
> re-opened.
>
> IMHO, it just makes things a bit overcomplicated when reading code
> (especially if it is supposedly self documenting) if methods that would
> normally just act as an accessor start having side effects.
>...
Well its really a conversion method rather than an accessor, and in any case
lazy accessors routinely have side effects. It is conventional in Dolphin
that #asParameter lazily recreate whatever external resource is needed to
supply a handle for passing to an external library call, and indeed the
system relies on this behaviour to recreate the state of a saved image.
The ExternalLibrary>>handle method can be used to access the handle without
causing the library to be opened, if needed.
Regards
Blair
|