<br><br><div><span class="gmail_quote">On 10/21/06, <b class="gmail_sendername">Spencer Salazar</b> <<a href="mailto:ssalazar@cs.princeton.edu">ssalazar@cs.princeton.edu</a>> 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 "new" in this sense. It says;
<br><br>-------------------<br>! + - new (unary)<br>These operators come before one operand.<br><br> // logical invert<br> if( !true == false )<br> <<<"yes">>>;<br><br> // negative
<br> -1 => int foo;<br><br> // instantiate object<br> new object @=> 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 "@" is very confusing to me. Eventually it seems to be called "bar" but then why do we need the "@=>" and mention "object" again? This one line is used to explain what "new" 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>