[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Re: [zzdev] Re: [zzdev] Re: [zzdev] Re: [zzdev] Re: [zzdev] Notes on accessing past versions

Antti-Juhani Kaijanaho wrote:
> It's perfectly possible to implement that within the space part.  Since
> the old-version wrapper cells are their own subclass of ZZCell, I can override
> s, connect and disconnect.  And I just did that.  Since the versioning support
> is experimental, the new code is activated only if the -versioneddims switch is
> specified on the command line.  (Eventually, if the feature is seen to be working
> fine, it should become the default.)

Oh, alright. I didn't think of that trick.

One catch: Cell c is a normal cell, cell v is from an old version.
Suppose you do:

c.connect("d.1", v)

After that, wouldn't c.s("d.1") give v, but v.s("d.1", -1) not? That
violates the ZigZag principle, which is a bad idea.