1. 25 Oct, 2012 2 commits
  2. 24 Oct, 2012 3 commits
  3. 23 Oct, 2012 1 commit
  4. 22 Oct, 2012 15 commits
  5. 21 Oct, 2012 11 commits
  6. 20 Oct, 2012 4 commits
  7. 19 Oct, 2012 4 commits
    • 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
    • Robert Griesemer's avatar
      go spec: define make() restrictions as for index expressions · 3bde0003
      Robert Griesemer authored
      This is a language change: Until now, the spec required run-
      time panics for some of these errors. Note that gc and gccgo
      implemented this inconsistently, and that both compilers already
      reported compile-time errors in some cases. This change makes
      make() behave along the same vein as index expressions.
      
      This addresses the spec aspect of issue 4085.
      
      R=r, rsc, iant, ken
      CC=golang-dev
      https://golang.org/cl/6725053
      3bde0003
    • Oling Cat's avatar
      unsafe: fix a typo · c117da37
      Oling Cat authored
      R=golang-dev, dsymonds
      CC=golang-dev
      https://golang.org/cl/6736048
      c117da37
    • Nigel Tao's avatar
      bufio: make Writer.ReadFrom not flush prematurely. For example, · e55fdff2
      Nigel Tao authored
      many small writes to a network may be less efficient that a few
      large writes.
      
      This fixes net/http's TestClientWrites, broken by 6565056 that
      introduced Writer.ReadFrom. That test implicitly assumed that
      calling io.Copy on a *bufio.Writer wouldn't write to the
      underlying network until the buffer was full.
      
      R=dsymonds
      CC=bradfitz, golang-dev, mchaten, mikioh.mikioh
      https://golang.org/cl/6743044
      e55fdff2