<HTML><BODY><DIV class="js-helper js-readmsg-msg">
<DIV id=style_13751500150000000459 class=mr_read__body>
<DIV id=style_13751500150000000459_BODY>Yes. Really it is read-time.<BR><BR>In CL every top level expression read-compile-load or simply load if it is compiled. <BR><BR>So in Racket would be natural to have (for-syntax ...) environment in #. I hope, that Racket also read toplevel form, loads it, then reads next (not reads all at once, then load first form , second form and so on).<BR><BR>Can you invent such read-macro?<BR><BR><BR>Понедельник, 29 июля 2013, 21:44 -04:00 от Sam Tobin-Hochstadt &lt;samth@ccs.neu.edu&gt;:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #0857a6 1px solid; PADDING-BOTTOM: 0px; MARGIN: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; PADDING-TOP: 0px">
<DIV>
<DIV>
<DIV id=style_13751487200000000087>
<DIV id=style_13751487200000000087_BODY>On Mon, Jul 29, 2013 at 1:53 PM, Vincent St-Amour &lt;<A href="https://e.mail.ru/messages/sentmsg?compose&amp;To=stamourv@ccs.neu.edu" target=_blank>stamourv@ccs.neu.edu</A>&gt; wrote:<BR>&gt; Here's a quick solution:<BR>&gt;<BR>&gt; #lang racket<BR>&gt;<BR>&gt; (define-syntax-rule (hash-dot e)<BR>&gt; (let-syntax ([computed-e (lambda (stx) (datum-&gt;syntax #'e e))])<BR>&gt; (computed-e)))<BR>&gt;<BR>&gt; (hash-dot (+ 2 3))<BR>&gt;<BR><BR>In CL, #. is read-time, not compile-time, evaluation, so this isn't<BR>quite the same. It would be easy to create a read-table that enabled<BR>this, though. You'd have to make some decision about what environment<BR>the read-time expression sees -- I don't know what CL does here.<BR><BR>Sam<BR></DIV></DIV></DIV></DIV></BLOCKQUOTE><BR><BR>-- <BR>Roman Klochkov<BR></DIV><BASE href="https://e.mail.ru/" target=_self></DIV></DIV><BR></BODY></HTML>