[e-lang] Newbie questions about persistence
Kevin Reid
kpreid at mac.com
Thu Sep 17 15:06:16 EDT 2009
On Sep 17, 2009, at 8:23, Thomas Leonard wrote:
> On Thu, 2009-09-17 at 10:21 +0100, Thomas Leonard wrote:
>> On Mon, 2009-09-14 at 15:43 -0400, Kevin Reid wrote:
> [...]
>>> 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>>)
Gah. Sometimes I forget what's my own invention.
MarkM, is there any reason not to add __optUncall to (unguarded) var
slots?
--
Kevin Reid <http://switchb.org/kpreid/>
More information about the e-lang
mailing list