]> Cypherpunks repositories - gostls13.git/commitdiff
spec: mention Inf and NaN are supported at run time.
authorRuss Cox <rsc@golang.org>
Mon, 18 Jan 2010 23:59:14 +0000 (15:59 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 18 Jan 2010 23:59:14 +0000 (15:59 -0800)
add hyperlink at mention of package reflect.

Fixes #438.

R=r
CC=golang-dev
https://golang.org/cl/190042

doc/go_spec.html

index 5243db37da58ad2232ea7ed0499d1bb0b44c04bd..79376dc46d196a31a62fe6d0e1e5a1e821387bc3 100644 (file)
@@ -507,6 +507,16 @@ can be given the types <code>float32</code>, <code>float64</code>, or <code>uint
 not <code>int32</code> or <code>string</code>.
 </p>
 
+<p>
+There are no constants denoting the IEEE-754 infinity and not-a-number values,
+but the <a href="/pkg/math/"><code>math</code> package</a>'s
+<a href="/pkg/math/#Inf">Inf</a>,
+<a href="/pkg/math/#NaN">NaN</a>,
+<a href="/pkg/math/#IsInf">IsInf</a>, and
+<a href="/pkg/math/#IsNaN">IsNaN</a>
+functions return and test for those values at run time.
+</p>
+
 <p>
 Implementation restriction: A compiler may implement numeric constants by choosing
 an internal representation with at least twice as many bits as any machine type;
@@ -4681,7 +4691,7 @@ value and returns both the type and the address of the copy.
 <code>Unreflect</code> inverts <code>Reflect</code>,
 creating an
 interface value from a type and address.
-The <code>reflect</code> package built on these primitives
+The <a href="/pkg/reflect/"><code>reflect</code> package</a> built on these primitives
 provides a safe, more convenient way to inspect interface values.
 </p>