guile-user
[Top][All Lists]
Advanced

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

Re: Pass by reference. un-schemey?


From: Sam Phillips
Subject: Re: Pass by reference. un-schemey?
Date: Sun, 23 Dec 2001 22:15:20 -0800
User-agent: Mutt/1.3.24i

On Sun, Dec 23, 2001 at 04:18:11PM -0800, John E. Kreznar wrote:
> Sam Phillips <address@hidden> writes:
> 
> > Is there an easy way to pass a variable by reference into a procedure?
> 
> Put it inside a lambda, such as a thunk.  Instead of calling (sub x),
> use (sub (lambda () x)).  Inside of sub, where you would otherwise
> refer to just x, refer instead to (x).
> 

Interesting.  I also realized recently that using a macro for what I
want to do will probably work just as good for what I want to do.

-- 
Sam Phillips <address@hidden>                http://www.dasbistro.com
Reno                                                              Nevada



reply via email to

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