<div dir="ltr"><div>hi Valentin,</div><div><br></div><div>Maybe you remember the case when Offset was bound within the binary?</div><div><<Offset, _:Offset/binary, Value/binary>></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 19, 2019 at 8:39 AM Valentin Micic <<a href="mailto:v@micic.co.za">v@micic.co.za</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">My sincere apology if this has been discussed before…<div>I vaguely remember that a number of years ago, one was able to write something like this:</div><div><br></div><div><i><font face="Courier">some_function( Offset, <<_:Offset/binary-unit:8, Value/binary>> ) -> …</font></i></div><div><br></div><div>without (Erlang R21.1) compiler complaining with: <i style="font-family:Courier">variable Offset unbound</i></div><div><br></div><div>Was I dreaming? </div><div><br></div><div>Thanks in advance</div><div><br></div><div>V/</div><div><br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>