Commit 37ab838d authored by Rob Pike's avatar Rob Pike

&Foo{x,y} wasn't in the spec. This gets it in, dependent on a proper section regarding

address operators, to follow.

R=rsc
DELTA=11  (10 added, 0 deleted, 1 changed)
OCL=26529
CL=26532
parent 70c1a106
......@@ -1906,7 +1906,17 @@ one may write
</p>
<pre>
pi := Num{Rat{22, 7}, 3.14159, "pi"};
pi := Num{Rat{22, 7}, 3.14159, "pi"}
</pre>
<p>
Since evaluation of a literal creates a new value, taking the address of a
composite literal (§Address operators) generates a pointer to a unique
instance of the literal's value.
</p>
<pre>
var pi_ptr *Rat = &amp;Rat{22, 7}
</pre>
<p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment