guile-user
[Top][All Lists]
Advanced

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

Re: Mixing syntax-rule and indentifier-syntax


From: Andy Wingo
Subject: Re: Mixing syntax-rule and indentifier-syntax
Date: Tue, 17 Jan 2012 10:22:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Tue 17 Jan 2012 00:11, Tobias Brandt <address@hidden> writes:

> I want to define a macro `with-vectors` that transforms this:
>
> (with-vectors (v)
>     (v 0)
>     (set! (v 0) 'foo)
>     (some-procedure v))

We currently don't have good support in the expander for variable
transformers that take arguments.

You can use a procedure-with-setter, perhaps.

Another option would be to alias specific elements of your vector to
identifiers:

  http://thread.gmane.org/gmane.lisp.guile.user/8724/focus=9100

Andy
-- 
http://wingolog.org/



reply via email to

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