Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(65)

Issue 6494140: code review 6494140: spec: unsafe.Alignof/Sizeof also accept non-variable ar... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by gri
Modified:
12 years, 5 months ago
Reviewers:
CC:
r, rsc, iant, ken2, golang-dev
Visibility:
Public.

Description

spec: unsafe.Alignof/Sizeof also accept non-variable arguments Both gc and gccgo permit calls such as unsafe.Sizeof(42). The spec only permits variable arguments. This is a (backward-compatible) spec change reflecting the status quo. Seems preferrable over restricting the compilers.

Patch Set 1 #

Total comments: 3

Patch Set 2 : diff -r 8df0b8f89db3 https://code.google.com/p/go #

Total comments: 1

Patch Set 3 : diff -r 23b89fb47d66 https://code.google.com/p/go #

Patch Set 4 : diff -r f48f1de09de5 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M doc/go_spec.html View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 7
gri
Hello r, rsc, iant, ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
12 years, 5 months ago (2012-09-14 22:06:01 UTC) #1
r
http://codereview.appspot.com/6494140/diff/1/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/6494140/diff/1/doc/go_spec.html#newcode5491 doc/go_spec.html:5491: of any type and return the alignment (or size, ...
12 years, 5 months ago (2012-09-14 22:20:11 UTC) #2
gri
PTAL http://codereview.appspot.com/6494140/diff/1/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/6494140/diff/1/doc/go_spec.html#newcode5491 doc/go_spec.html:5491: of any type and return the alignment (or ...
12 years, 5 months ago (2012-09-14 22:25:47 UTC) #3
r
LGTM
12 years, 5 months ago (2012-09-14 22:27:59 UTC) #4
iant
LGTM https://codereview.appspot.com/6494140/diff/3/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/6494140/diff/3/doc/go_spec.html#newcode3 doc/go_spec.html:3: "Subtitle": "Version of September 14, 2012", s/14/17/
12 years, 5 months ago (2012-09-17 17:05:05 UTC) #5
rsc
LGTM
12 years, 5 months ago (2012-09-17 18:22:32 UTC) #6
gri
12 years, 5 months ago (2012-09-17 19:23:44 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=d27358d77d44 ***

spec: unsafe.Alignof/Sizeof also accept non-variable arguments

Both gc and gccgo permit calls such as unsafe.Sizeof(42). The
spec only permits variable arguments. This is a (backward-compatible)
spec change reflecting the status quo. Seems preferrable over
restricting the compilers.

R=r, rsc, iant, ken
CC=golang-dev
http://codereview.appspot.com/6494140
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b