<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/1/19 Liam Healy <span dir="ltr"><<a href="mailto:lnp@healy.washington.dc.us" target="_blank">lnp@healy.washington.dc.us</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div>I would prefer to leave the question of aggregate definition to someone else, as I am not clear on what constitutes an aggregate.  However, if you find code breaking, please post a "before and after" minimal example with the previous correct result and the current wrong result.  If you have a proposed method to fix the problem, can you add that to your branch and do a pull request?</div>

</blockquote><div style>Ah, my English is not very good. Actually i meant the code i was writing in some personal projects are broken and i think it was cffi's bug, sorry.</div><div><br></div><div style>I can't do a pull request until i knew what is the correct thing to do (and wrote it down).</div>

<div><br></div><div style>Yes, there are several methods to fix it, but that depends on what we think BARE-STRUCT-TYPE-P should do.</div><div> </div><div style>Solution #1 </div><div style>(defmethod bare-struct-type-p ((x foreign-type))</div>

<div style>     <return some proper value here>)</div><div style>Now we provide a default value.</div><div style><br></div><div style>Solution #2</div><div style><div>(defmethod bare-struct-type-p ((x foreign-array-type))</div>

<div>     <return some proper value here>)</div><div style>Add we are asking user to implement bare-struct-type-p for their type before they can safely call MEM-REF</div><div style><br></div><div style>Solution #3</div>

<div style>Modify the MEM-REF code to see if it is a foreign-struct-type or typedef into a foreign-struct-type first AND call bare-struct-type-p</div><div style><br></div><div style>I'm not sure which is better. Actually i'm not sure what it means to ask a non-struct type if it is bare(maybe the <proper value> is nil). But i think solution #1 is the simplest?</div>

<div style> <br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>Yes, please.</div></blockquote>

</div>OK. The fix should use BARE-STRUCT-TYPE-P, so after the fix above this will be fixed in a minute.<br><br><br>-- <br>Wir müssen wissen; wir werden wissen!<br>CrLF.0710
</div></div>