of course ...<div><br></div><div>Thanks.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 2:20 PM, Tobias Hammer <span dir="ltr"><<a href="mailto:tobias.hammer@dlr.de" target="_blank">tobias.hammer@dlr.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">format-id from racket/syntax?<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, 15 Nov 2012 20:13:40 +0100, Ray Racine <<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What little macro-fu I ever had abandoned me long back.<br>
<br>
Say I want to generate an identifier, e.g. add a standard suffix.<br>
<br>
So if my identifier is `hello', the suffix `-tmp' is appended forming<br>
`hello-tmp'.<br>
<br>
The following gets there but I seem to recall using an easier technique in<br>
days of lore.<br>
<br>
[(_ name:id e0:expr e1:expr ...)<br>
(with-syntax ((name-tmp (datum->syntax stx (string->symbol (string-append<br>
(symbol->string (syntax->datum #'name))<br>
<br>
"-tmp")))))<br>
<br>
Is there an easier way to append together syntax?<br>
<br>
<br>
Thanks,<br>
<br>
Ray<br>
</blockquote>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
------------------------------<u></u>---------------------------<br>
Tobias Hammer<br>
DLR / Institute of Robotics and Mechatronics<br>
Muenchner Str. 20, D-82234 Wessling<br>
Tel.: 08153/28-1487<br>
Mail: <a href="mailto:tobias.hammer@dlr.de" target="_blank">tobias.hammer@dlr.de</a><br>
</font></span></blockquote></div><br></div>