<br><br><div><span class="gmail_quote">On 10/21/06, <b class="gmail_sendername">Spencer Salazar</b> &lt;<a href="mailto:ssalazar@cs.princeton.edu">ssalazar@cs.princeton.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>The only similarity to ! is that they are unary operators, i.e. they<br>take one operand.</blockquote><div><br><br>Got it.<br><br>I just looked it up and page 51 (of the pdf file numbering) is the only place in the manual that mentions &quot;new&quot; in this sense. It says;
<br><br>-------------------<br>! + - new (unary)<br>These operators come before one operand.<br><br>&nbsp;&nbsp;&nbsp; // logical invert<br>&nbsp;&nbsp;&nbsp; if( !true == false )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&lt;&quot;yes&quot;&gt;&gt;&gt;;<br><br>&nbsp;&nbsp;&nbsp; // negative
<br>&nbsp;&nbsp;&nbsp; -1 =&gt; int foo;<br><br>&nbsp;&nbsp;&nbsp; // instantiate object<br>&nbsp;&nbsp;&nbsp; new object @=&gt; object @ bar;<br>--------------<br></div><br><br>That last line could use some explanation as far as I'm concerned.<br><br>I understand we are creating a new object and asigning it but then what? The second &quot;@&quot; is very confusing to me. Eventually it seems to be called &quot;bar&quot; but then why do we need the &quot;@=&gt;&quot; and mention &quot;object&quot; again? This one line is used to explain what &quot;new&quot; does and as far as I can tell two forms of asignment at the same time.
<br><br>To put it bluntly; that's too much for me in on go without context.<br><br>I propose simplifying that line and explaining the principles hinted at in some more depth in their own sections; I stared at that line for quite a while.
<br><br>Kas.<br></div>