Thank you Matthew and everybody who responded for all these suggestions.<div><br></div><br><div class="gmail_quote">On Sun, Dec 21, 2008 at 4:24 AM, Matthew Dempsky <span dir="ltr"><<a href="mailto:matthew@dempsky.org">matthew@dempsky.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2008/12/20 Camille Troillard <<a href="mailto:tuscland@gmail.com">tuscland@gmail.com</a>>:<br>
<div class="Ih2E3d">> I don't find it very elegant, and guess there is a better way of doing this.<br>
<br>
</div>Your solution looks fine to me.<br>
<div class="Ih2E3d"><br>
> Also, I was wondering why the "/binary" suffix was needed if I want to<br>
> append to the Bin variable. Intuitively, I have written <<Bin, 0:size>>,<br>
> but it doesn't work.<br>
<br>
</div>If you omit a type specifier on a variable in a binary expression, it<br>
defaults to a single byte. The expression is statically typed at<br>
compile time, so if you write <<Bin>>, the compiler writes code that<br>
assumes Bin is an integer value. At run-time, when it detects it's a<br>
binary instead, a type error is raised.<br>
</blockquote></div><br>