Re: Newbie questions about persistence
Thomas Leonard <tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Organization | IT Innovation |
| Message-ID | <[email protected]> |
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-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected] http://www.it-innovation.soton.ac.uk