[racket] Please help with syntax

From: Roman Klochkov (kalimehtar at mail.ru)
Date: Sat Jun 28 02:43:28 EDT 2014

 I need to define syntax set!-values*, that will ignore _ in value place.

Such as
(define a #f)
(set!-values* (_ _ a) (values 1 2 3)) ; should set a to 3.

But I have two problems:
1. _ don't want to pattern match in syntax case. If I make it literal, I can't match "anything else".
2. How to omit extra values. It seems that in any case I have to assign them to something...

Can you help me? I hope, that my problem in fact not hard, but I have not enough experience to solve it.

-- 
Roman Klochkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140628/e85b3406/attachment-0001.html>

Posted on the users mailing list.