[e-lang] Prize and Milestone as mutable state idioms

Kevin Reid kpreid at mac.com
Wed Jul 2 20:20:38 CDT 2008


On Jul 2, 2008, at 20:31, Mark Miller wrote:
> On Wed, Jul 2, 2008 at 5:20 PM, Kevin Reid <kpreid at mac.com> wrote:
>> def [yet, now] := {
>>   var v := false
>>   [v.get,
>>    def now() { v := true }]
>> }
>
>
> Did you mean
>
>     (&v).get
>
> ?

Yes.

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>




More information about the e-lang mailing list