chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] External procedures at runtime


From: John Cowan
Subject: Re: [Chicken-users] External procedures at runtime
Date: Wed, 1 Aug 2007 09:55:43 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

felix winkelmann scripsit:
> *cough*

Thanks.  Here's a procedure with a pseudo-closure:

(define foo
  (letrec ((foo (extend-procedure
                  (case-lambda
                    (() (procedure-data foo))
                    ((x) (set-procedure-data! foo x) (void)))
                  (void))))
    foo))

-- 
A few times, I did some exuberant stomping about,       John Cowan
like a hippo auditioning for Riverdance, though         address@hidden
I stopped when I thought I heard something at           http://ccil.org/~cowan
the far side of the room falling over in rhythm
with my feet.  -- Joseph Zitt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]