From: Ian Lance Taylor Date: Thu, 11 Mar 2010 04:38:38 +0000 (-0800) Subject: Revert previous change: complexN only converts to complexN. X-Git-Tag: weekly.2010-03-15~12 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=11a218444f59567c9c65300045dccddef60e193a;p=gostls13.git Revert previous change: complexN only converts to complexN. This was discussed with Ken and Russ. 6g has been changed, and both compilers now work this way. This avoids a double type conversion--first to the float type, then to the complex type. R=r CC=golang-dev, ken2, rsc https://golang.org/cl/419042 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 0778d73fc9..83d9f90e41 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3262,7 +3262,7 @@ When converting a floating-point number to an integer, the fraction is discarded
  • A value of complex type may be converted to a different complex type, -but there is no conversion from complex to any other type. +but there is no conversion between complex and any other type.
  • When converting a number to a floating-point or complex type, the result value is rounded