<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--@font-face
{細
明
體}
@font-face
{font-family:"\@&\#26032\;&\#32048\;&\#26126\;&\#39636\;";}
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Arial;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 89.85pt 72.0pt 89.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>It came to realisation by
returning R9x instead of <<R9x/binary>> in the second piece of code,
the code did compile.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>From:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> <b><span
style='font-weight:bold'><<_NIL<font color=black><span style='color:black'>:8</span></font>,
R9x/binary>> = R9</span></b>,<font color=black><span style='color:black'> <o:p></o:p></span></font></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> {[],
<<R9x/binary>>}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>To:<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:24.0pt'><b><font size=2 face=Arial><span
lang=EN-ZA style='font-size:10.0pt;font-family:Arial;font-weight:bold'><<_NIL<font
color=black><span style='color:black'>:8</span></font>, R9x/binary>> = R9</span></font></b><font
size=2 face=Arial><span lang=EN-ZA style='font-size:10.0pt;font-family:Arial'>,<font
color=black><span style='color:black'>
</span></font></span></font><font size=2 color=black face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial;color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> {[], <b><span
style='font-weight:bold'>R9x</span></b>}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>Regards,</span></font><font
color=black><span lang=EN-US style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>Chih-Wei Yu</span></font><span
lang=EN-US><o:p></o:p></span></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
erlang-questions-bounces@erlang.org
[mailto:erlang-questions-bounces@erlang.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Chih - Wei Yu [ MTN - Innovation Centre ]<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, January 15, 2008
2:18 PM<br>
<b><span style='font-weight:bold'>To:</span></b> erlang-questions@erlang.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [erlang-questions] R12B-0
Compiler questions</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>I’m having some
issues when compiling code in R12B-0. Its reporting internal consistency check
failed. I can compile the code in R11B-5. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>I’ve provided the
code that is reporting the error when compiling. I did see other
‘similar’ issues raised but would like to raise it again.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>Thanks.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>[Code]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>encode_octet_string(
<<OctetString/binary>>, Len ) -> <b><span style='font-weight:
bold'><<OctetString:Len/binary-unit:8>></span></b>; % The
compiler reports an error for this line of code <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>encode_octet_string(
[H|T], Len )<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>-><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'> <b><span
style='font-weight:bold'>B = list_to_binary( [H|T] ), <o:p></o:p></span></b></span></font></p>
<p class=MsoNormal><b><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-weight:bold'>
<< B:Len/binary-unit:8>></span></font></b><font size=2 color=black
face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial;
color:black'>
% However, for this line of code it does not report an error.</span></font><font
size=2 color=black face=Arial><span lang=EN-ZA style='font-size:10.0pt;
font-family:Arial;color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'>encode_octet_string(
_ANY, _ ) -> <<>>.</span></font><font size=2 color=black
face=Arial><span lang=EN-ZA style='font-size:10.0pt;font-family:Arial;
color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>[compiler error]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>(test@test)8>
c("../../../../projects/src/smpp_types").<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>smpp_types: function encode_octet_string/2+9:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'> Internal consistency check failed - please
report this bug.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'> Instruction: {<b><span style='font-weight:
bold'>bs_put_binary</span></b>,{f,0},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>
{x,1},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>
8,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>
{field_flags,[unsigned,big]},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>
{x,0}}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'> Error:
{match_context,{x,0}}:</span></font><font size=2 face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>-------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'>Another piece of code<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>[Code]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> <<A:8,
R8/binary>> = R7,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> <<B:8, <b><span
style='font-weight:bold'>R9</span></b>/binary>>
= R8,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> {C, <<_R10/binary>>} =
if<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> A >
0 -> decode_octet_string( A, R9 );<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> true<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> -><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
<b><span style='font-weight:bold'> <<_NIL<font color=black><span
style='color:black'>:8</span></font>, R9x/binary>> = R9</span></b>,<font
color=black><span style='color:black'>
</span></font></span></font><font size=2 color=black face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial;color:black'>% The
compiler reports an error for this line of code <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
{[], <<R9x/binary>>}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> end,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>[Compiler error]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>Internal consistency check failed - please report
this bug.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> Instruction: {<b><span style='font-weight:
bold'>bs_append</span></b>,{f,0},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
{integer,0},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
0,5,8,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
{x,3},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
{field_flags,[]},<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'>
{x,5}}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-ZA style='font-size:
10.0pt;font-family:Arial'> Error:
{match_context,{x,3}}:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-ZA
style='font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>Regards,</span></font><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>Chih-Wei Yu</span></font><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
</div>
NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/default.aspx?pid=34411 </body>
</html>