1. 07 Jan, 2013 1 commit
  2. 03 Jan, 2013 1 commit
  3. 12 Dec, 2012 3 commits
  4. 11 Dec, 2012 1 commit
  5. 10 Dec, 2012 1 commit
  6. 06 Dec, 2012 2 commits
  7. 04 Dec, 2012 1 commit
  8. 03 Dec, 2012 1 commit
  9. 29 Nov, 2012 2 commits
  10. 26 Nov, 2012 1 commit
  11. 21 Nov, 2012 1 commit
  12. 17 Nov, 2012 1 commit
  13. 02 Nov, 2012 1 commit
  14. 01 Nov, 2012 1 commit
    • Robert Griesemer's avatar
      spec: clarify returns, defer statements, and panics · 1e8e14c9
      Robert Griesemer authored
      This is an attempt at making the interaction between
      these three constructs clearer. Specifically:
      
      - return statements terminate a function, execute deferred
        functions, return to the caller, and then execution
        continues after the call
      
      - panic calls terminate a function, execute deferred
        functions, return to the caller, and then re-panic
      
      - deferred functions are executed before a function _returns_
        to its caller
      
      The hope is that with this change it becomes clear when a
      deferred function is executed (when a function returns),
      and when it is not (when a program exits).
      
      R=r, rsc, iant, ken, iant
      CC=golang-dev
      https://golang.org/cl/6736071
      1e8e14c9
  15. 31 Oct, 2012 2 commits
  16. 19 Oct, 2012 2 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
  17. 17 Oct, 2012 1 commit
  18. 16 Oct, 2012 1 commit
  19. 10 Oct, 2012 1 commit
  20. 03 Oct, 2012 1 commit
    • Robert Griesemer's avatar
      go spec: conversion types starting with "func" must be parenthesized · 3188ffc9
      Robert Griesemer authored
      Also: Be explicit what operator means with respect to conversion types.
      
      The parenthesis requirement is a language change. At the moment,
      literal function types in conversions that cannot possibly be
      followed by a '(' don't need parentheses. For instance:
      
              func(int)int(x)  ->  same as (func(int)int)(x)
              func()()(x)      ->  same as (func())(x)
      
      but:
      
              func(int)(x)	 ->  could be func(int)x {...}
      
      Fixes #4109.
      
      R=rsc, r, iant, ken, iant
      CC=golang-dev
      https://golang.org/cl/6584065
      3188ffc9
  21. 28 Sep, 2012 1 commit
  22. 26 Sep, 2012 1 commit
  23. 22 Sep, 2012 1 commit
  24. 18 Sep, 2012 1 commit
    • Robert Griesemer's avatar
      spec: clarify expression statements · 8c058b32
      Robert Griesemer authored
      Function and method calls are valid expression statements,
      but calling certain built-in functions is not permitted.
      Enumerate the built-ins.
      
      Also: unsafe.Offsetof permits parenthesized selectors as
      arguments.
      
      This is simply documenting existing compiler behavior
      (both gc and gccgo agree).
      
      R=r, rsc, iant, ken
      CC=golang-dev
      https://golang.org/cl/6498138
      8c058b32
  25. 17 Sep, 2012 1 commit
  26. 14 Sep, 2012 1 commit
    • Robert Griesemer's avatar
      spec: clarify section on string types · cc06593c
      Robert Griesemer authored
      Strings happen to be represented similarly to
      byte slices internally, but they don't quite
      behave like them: While strings can be indexed,
      sliced, and have their len() taken like byte
      slices, string elements are not addressable,
      make() and cap() is not supported, range loops
      operate differently, and they are immutable (and
      thus behave like values rather then references).
      
      Fixes #4018.
      
      R=r, rsc, iant, ken
      CC=golang-dev
      https://golang.org/cl/6503116
      cc06593c
  27. 12 Sep, 2012 1 commit
  28. 07 Sep, 2012 1 commit
    • Rob Pike's avatar
      spec: an initial BOM can be ignored · 488350ac
      Rob Pike authored
      After further deliberation, let's back down to the Unicode proposal.
      Ignoring aBOMinations anywhere means that things like
              grep unsafe *.go
      might fail because there's a BOM in the middle: unBOMsafe.
      
      R=golang-dev, rsc, 0xjnml, gri, bradfitz
      CC=golang-dev
      https://golang.org/cl/6490091
      488350ac
  29. 06 Sep, 2012 1 commit
  30. 05 Sep, 2012 1 commit
  31. 29 Aug, 2012 1 commit
    • Rob Pike's avatar
      go_spec.html: clarify rune and string literals · 9dfc6f64
      Rob Pike authored
      No changes to the meaning, just clearer language and more
      examples, including illegal rune and string literals.
      In particular, "character literal" and "character constant"
      are now called "rune literal" and "rune constant" and the
      word "character" always refers to the source text, not
      program values.
      
      R=golang-dev, gri
      CC=golang-dev
      https://golang.org/cl/6448137
      9dfc6f64
  32. 17 Aug, 2012 1 commit
  33. 09 Aug, 2012 1 commit
  34. 11 Jul, 2012 1 commit