[Cuis-dev] [RFC] Proxy, reference stream ?
Hilaire Fernandes
hfern at free.fr
Sat Nov 23 00:38:54 PST 2024
Le 21/11/2024 à 12:24, Gerald Klix a écrit :
> As I mentioned several times, I implemented my on persistence solution
> for Haver,
> which supports proxy objects and classes that have custom records that
> are stored in the database.
> (https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/db/PlanF.pck.st)
Do you have examples, documentation?
> Using for proxy objects to store morphs in a (smart) reference stream
> is a bit dangerous,
> because Morph>>#copy uses those to copy a whole tree of morphs.
> In other words: This will break the assumption, that the
> aforementioned method
> produces a complete copy.
Noted. Be cautious with the idea of proxy and Morph.
I am not sure yet, but using something as simple as this could be just
good enough:
PageModelPdf>>form
^ form ifNil: [ form := self loadFromDisk ]
--
http://mamot.fr/@drgeo
More information about the Cuis-dev
mailing list