This is what I came up with.

https://github.com/feeley/gambit/pull/60

An usage example is included in the comments.

For rationale and background see my (withdrawn) previous shot at this:

https://github.com/feeley/gambit/pull/59/

Comments welcome!


On Wed, Dec 25, 2013 at 2:45 PM, Estevo <euccastro@gmail.com> wrote:
I think how wills work is fine.  It's the particular usage of wills I described before that I find dangerous.  The problem with Gambit is that it doesn't offer a better way to do that.

As I said, I'm working on a patch that enables a better way.  As soon as I have a coherent proposal I'll ask the list for opinions/alternatives/suggestions.


On Wed, Dec 25, 2013 at 2:11 PM, Mikael <mikael.rcv@gmail.com> wrote:
Right. Just to clarify: Right now, do you see a problem about what's happening or do you consider all spinning fine?


2013/12/25 Estevo <euccastro@gmail.com>
> [...] But since none of these references is strong, the will that has it as testator
> will be made executable in the next garbage collection[1].

(Sorry, by "the next" garbage collection I don't mean a different one, just the same one I trigger by calling (##gc).)