Hmm, I posted a slightly too easy version of my actual problem...

The version I posted can be solved through a (syntax) construct, as it has 
access to 'x' and 'y', and can thus rewrite the construct so that 'x' and 'y' 
are spliced.

However, I'm encountering the case where:

(let ((q '(x y)) f q)

should still result in:

(myFunction x y)

Now, any (syntax) construct would have access to 'q', but there doesn't seem 
to be a way to get from there to '(x y)...

I hope I've described this in a sufficiently clear way...

Thanks,

Hans

On Tuesday 04 September 2007 13:27, SainTiss wrote:
> Hi all,
>
> is there a way to do something like this? :
> (define f (lambda (b) (myFunction ,@b)))
>
> i.e. b is expected to be a list and I want to splice that list when calling
> myFunction, but I'm not in a backquoted context.
>
> e.g. I would like (f '(x y)) to result in (myFunction x y)
>
> Thanks,
>
> Hans

-- 
A liberal is a person whose interests aren't at stake at the moment
  -- Willis Player

Hans Schippers
Research Assistant of the Research Foundation - Flanders (FWO - Vlaanderen)
http://www.win.ua.ac.be/~hschipp/
Formal Techniques in Software Engineering (FoTS)
University of Antwerp
Middelheimlaan 1
2020 Antwerpen - Belgium
Phone: +32 3 265 38 71
Fax: +32 3 265 37 77
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to