From: Rob Pike Date: Fri, 13 Mar 2009 00:08:47 +0000 (-0700) Subject: fix language regarding type of numeric literals X-Git-Tag: weekly.2009-11-06~2034 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ce9417ee1a2bb90fca34c87dc4f7516dfb5519b5;p=gostls13.git fix language regarding type of numeric literals R=rsc DELTA=4 (0 added, 2 deleted, 2 changed) OCL=26208 CL=26212 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 0af8d6e230..c42c4f04dd 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2856,10 +2856,8 @@ In practice, constant expressions are those that can be evaluated at compile tim

The type of a constant expression is determined by the type of its elements. If it contains only numeric literals, its type is ideal -integer or ideal float (§Ideal number). Whether it is an -integer or float depends on whether the value can be represented -precisely as an integer (123 vs. 1.23). -(TODO: Not precisely true; 1. is an ideal float.) +integer or ideal float (§Ideal number). Whether a literal +is an integer or float depends on the syntax of the literals (123 vs. 123.0). The nature of the arithmetic operations within the expression depends, elementwise, on the values; for example, 3/2 is an integer division yielding 1, while 3./2. is