<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 31, 2013, at 9:28 AM, Nathan Sorenson <<a href="mailto:takeoutweight@hotmail.com">takeoutweight@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">When translating Clojure code to Scheme, I'm finding it quite easy to preserve source code information for the Gambit interpreter, so that when I get exceptions I am notified of the offending Clojure source lines. Is there an obvious way I could do this for compiled code as well?</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "></blockquote><div><br></div>There isn't a form for this, but that would be useful and I have thought about adding it.  Something like a "source-at" special form.</div><div><br></div><div>For example,</div><div><br></div><div><div><div>   (source-at "foo.scm" 10 2 ;; file line column</div><div>              ((source-at "foo.scm" 10 8 cons)</div><div>               (source-at "foo.scm" 10 8 x)</div><div>               (source-at "foo.scm" 10 10 y)))</div><div><br></div></div><div>would be equivalent to</div><div><br></div><div><div>   (cons x y)</div><div><br></div><div>but with explicit source location information.</div><div><br></div><div>Actually this source-at form can be easily defined as a macro give me a few minutes.</div><div><br></div><div>Marc</div><div><br></div></div></div></body></html>