<br><br><div class="gmail_quote">On Thu, Mar 25, 2010 at 9:50 PM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="im">On Thu, Mar 25, 2010 at 1:06 PM, yami <span dir="ltr"><<a href="mailto:yamisoe@gmail.com" target="_blank">yamisoe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I have following pseudo code:<br> cl_object some_object = si_safe_eval(3, c_string_to_object("(blah blah)"), Cnil, OBJNULL);<br> for (i=0; i<LARGE_NUMBER; i++) {<br> cl_funcall(2, cl_intern(1, make_simple_base_string("use_some_object")), some_object); <br>
}<br><br>It seems that after some iterations, the value of some_object changed... Any ideas?<br></blockquote><div><br></div></div><div>If "some_object" is in a thread that is know to ECL and it is an automatic (i.e. stack) C variable, the object will not change.</div>
</div></blockquote><div>What will happen if some_object is a data member of a 'new'ed C++ class instance? Another question, code likes following:<br> for (i=0; i<n; i++) {<br> cl_object object_from_ecl = si_safe_eval(...);<br>
}<br><br>if object_from_ecl is cached in C, how ECL knows when to gc this object?<br><br>Thanks!<br></div></div>