Does it really reduce code size to wrap the function instead of explicitly cast? I've always believed that casts are mostly a compiler artifact coming from static typing, didn't usually generate complex code for runtime...<div>

<br></div><div>Thanks for your comments,</div><div><br></div><div>Álvaro<br><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2012/2/6 Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 2012-02-06, at 9:59 AM, Álvaro Castro-Castilla wrote:<br>
<br>
> Thank you Marc. Those are all better solutions than my wrapper function.<br>
><br>
> Best regards<br>
><br>
> Álvaro<br>
<br>
</div>Actually, using a wrapper function is a good idea to reduce code size.  Its intricacies can be hidden in a macro which generates the appropriate Scheme and C code.  I've written something like this in the past and even posted an example to the Gambit mailing list (unfortunately my mail system's search function is broken right now so I can't find the message).<br>


<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
<br>
</font></span></blockquote></div><br></div></div>