<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>surprising bit syntax</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><FONT SIZE=2 FACE="Arial">Is it just me, or is this behaviour surprising?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">4> <<255>>.</FONT>
<BR><FONT SIZE=2 FACE="Arial"><<"ÿ">></FONT>
<BR><FONT SIZE=2 FACE="Arial">5> <<256>>.</FONT>
<BR><FONT SIZE=2 FACE="Arial"><<0>></FONT>
<BR><FONT SIZE=2 FACE="Arial">6> <<257>>.</FONT>
<BR><FONT SIZE=2 FACE="Arial"><<1>></FONT>
<BR><FONT SIZE=2 FACE="Arial">7> <<257:8>>.</FONT>
<BR><FONT SIZE=2 FACE="Arial"><<1>></FONT>
<BR><FONT SIZE=2 FACE="Arial">8> <<I:8/integer>> = <<999>>. </FONT>
<BR><FONT SIZE=2 FACE="Arial"><<"ç">></FONT>
<BR><FONT SIZE=2 FACE="Arial">9> I.</FONT>
<BR><FONT SIZE=2 FACE="Arial">231</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I scanned the reference manual to find a note stating that this </FONT>
<BR><FONT SIZE=2 FACE="Arial">is exactly what one should expect, but I couldn't find it.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Personally, I would have expected something along the lines</FONT>
<BR><FONT SIZE=2 FACE="Arial">of badarg, which is what list_to_binary([999]) gives.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">BR,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Ulf W</FONT>
</P>
</BODY>
</HTML>