<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 <samth@ccs.neu.edu>:<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 <<A href="https://e.mail.ru/messages/sentmsg?compose&To=stamourv@ccs.neu.edu" target=_blank>stamourv@ccs.neu.edu</A>> wrote:<BR>> Here's a quick solution:<BR>><BR>> #lang racket<BR>><BR>> (define-syntax-rule (hash-dot e)<BR>> (let-syntax ([computed-e (lambda (stx) (datum->syntax #'e e))])<BR>> (computed-e)))<BR>><BR>> (hash-dot (+ 2 3))<BR>><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>