Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 1538

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>D Limitations</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node11.html#appendix.api">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="bib.html#label259">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="appendix.limitations"><H1><A name="appendix.limitations">D Limitations</A></H1><P> Some features of Oz syntax are not handled correctly for purposes of fontification and indentation. These will be described in the following so that you can work around these limitations. </P><DIV class="apropos"><P class="margin">Fontification</P><P> </P><UL><LI><P>An ampersand as the last character in a string or before a backslash-escaped double quote in a string prevents this double quote from being recognized as a string delimiter. Workaround: Write <CODE>[<SPAN class="string">&amp;&amp;</SPAN>]</CODE> or <CODE><SPAN class="string">&quot;\&amp;&quot;</SPAN></CODE> instead of <CODE><SPAN class="string">&quot;&amp;&quot;</SPAN></CODE>. </P></LI><LI><P>A backslash character token <CODE><SPAN class="string">&amp;\\</SPAN></CODE> immediately followed by a lowercase letter is misinterpreted as a directive, e.&nbsp;g., in <CODE>C&nbsp;<SPAN class="keyword">==</SPAN>&nbsp;&amp;\<SPAN class="reference">\andthen&nbsp;</SPAN></CODE>... Workaround: Include a space character. </P></LI><LI><P>At maximum fontification level, method names are coloured in <CODE>font-lock-funtion-name-face</CODE>. If one mistakenly uses a keyword as method name, as in <CODE><SPAN class="keyword">meth</SPAN>&nbsp;<SPAN class="functionname">lock</SPAN>()&nbsp;</CODE>...<CODE>&nbsp;<SPAN class="keyword">end</SPAN></CODE>, then one is not reminded of the fact that this constitutes a syntax error. </P></LI><LI><P>The use of non-escaped double quotes in Gump regular expression tokens written with angle brackets confuses fontification. Workaround: Express the regular expression by a string. </P></LI></UL><P> </P></DIV><DIV class="apropos"><P class="margin">Indentation</P><P> </P><UL><LI><P>If a keyword is immediately preceded by a number (without space), e.&nbsp;g., <CODE>10thread</CODE>, the keyword is not recognized as such. This also concerns fontification. Workaround: Write a space. </P></LI><LI><P>Indentation does not know about <CODE>/*&nbsp;</CODE>...<CODE>&nbsp;<SPAN class="comment">*/</SPAN></CODE> style comments, that is, their contents is indented like code and taken into account for computing the following indentation level. Workaround: Only use such comments to comment out properly nested code. </P></LI><LI><P>Indentation does not know about conditional compilation. Workaround: Only use conditionals around properly nested code. </P></LI><LI><P>Line breaks inside strings, quotes or backquote variables are reported as errors when computing the indentation level. Workaround: Write line breaks as <CODE><SPAN class="string">&quot;\n&quot;</SPAN></CODE> and/or use virtual strings with <CODE><SPAN class="keyword">#</SPAN></CODE> concatenation for multiline strings. </P></LI><LI><P>Indentation is not aware of infix operators, e.&nbsp;g.: </P><BLOCKQUOTE class="code"><CODE><SPAN class="keyword">feat</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;f:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;<SPAN class="keyword">+</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;7</CODE></BLOCKQUOTE><P> The <CODE>7</CODE> should be underneath the <CODE>5</CODE>. Workaround: Enclose the expression in parentheses. </P></LI><LI><P>The contents of Gump regular expression tokens in angle bracket notation are not ignored for purposes of indentation. Workaround: Express the regular expression by a string. </P></LI></UL><P> </P></DIV></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node11.html#appendix.api">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="bib.html#label259">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~kornstae/">Leif&nbsp;Kornstaedt</A> and&nbsp;<A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>