• Robert Griesemer's avatar
    go spec: constant divisors must not be zero · ddddd39f
    Robert Griesemer authored
    Both gc and gccgo always checked this for constant
    expressions but the spec only mentions run-time
    exceptions.
    
    This CL also requires that constant divisors
    must not be zero in non-constant integer expressions:
    This is consistent with the spirit of the most
    recent changes and it is consistent with constant
    expressions. We don't want to specify the effect for
    non-integer expressions (f/0.0 where f is a float or
    complex number) because there the result f/g is not
    further specified if a non-constant g is 0.
    
    R=r, rsc, iant, ken, andybalholm, iant
    CC=golang-dev
    https://golang.org/cl/6710045
    ddddd39f
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...