[e-lang] Newbie questions about persistence
Thomas Leonard
tal at it-innovation.soton.ac.uk
Thu Sep 17 08:23:29 EDT 2009
On Thu, 2009-09-17 at 10:21 +0100, Thomas Leonard wrote:
> On Mon, 2009-09-14 at 15:43 -0400, Kevin Reid wrote:
[...]
> > But as a workaround, you can define the proxy as you describe. I would
> > recommend making it part of the implementation of the oneShot, and not
> > exposing its existence to the user. (One way to do it would be to have
> > your oneShot serialize, not as its current state, but rather the slot
> > of the used flag: def uncall := [makeOneShot, "withFlagSlot",
> > [&used]]. Then the 'used' slot object serves as the un-duplicatable
> > object.
>
> That's clever - thanks!
Oops. I spoke too soon. Looks like only final slots can be persisted:
# . <makeRef>.fulfillment(<ref broken by problem: Can't uneval <var false>>)
--
Dr Thomas Leonard
IT Innovation Centre
2 Venture Road
Southampton
Hampshire SO16 7NP
Tel: +44 0 23 8076 0834
Fax: +44 0 23 8076 0833
mailto:tal at it-innovation.soton.ac.uk
http://www.it-innovation.soton.ac.uk
More information about the e-lang
mailing list