<div class="gmail_quote">On Wed, Aug 11, 2010 at 5:29 PM, Alexander Gavrilov <span dir="ltr"><<a href="mailto:angavrilov@gmail.com">angavrilov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi, I've finally got around to this, and after some investigation<br>
implemented it using the static constant facility in cmpwt.lsp<br>
instead:</blockquote></div><div><br></div>There are two problems with the static constant facility.<div><br></div><div>1) Not all compilers allow initialization of global constants in a complicated way. MSVC chokes on many of the expressions we produce for lisp constants.</div>
<div><br></div><div>2) Static constants are not allocated in the heap. That is a huge problem I did not realize until recently, because if a constant in a loaded file is still referenced _after_ the binary file is garbage collected and unloaded, then we have a problem. I am looking for a solution, but currently it seems disabling static constants is the only possibility.</div>
<div><br></div><div>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>