go spec: adjust notion of Assignability
This change makes it legal to pass a struct value as receiver
outside the package declaring the struct even if the respective
struct type has non-exported fields.
This is a backwards-compatible language change motivated by the
fact that it is already possible to circumvent the assignment
restriction when calling methods through interfaces (see issue
1402).
*** Submitted as http://code.google.com/p/go/source/detail?r=df410d6a4842 *** go spec: adjust notion of Assignability This change makes it ...
14 years, 3 months ago
(2011-02-03 18:53:33 UTC)
#3
*** Submitted as http://code.google.com/p/go/source/detail?r=df410d6a4842 ***
go spec: adjust notion of Assignability
This change makes it legal to pass a struct value as receiver
outside the package declaring the struct even if the respective
struct type has non-exported fields.
This is a backwards-compatible language change motivated by the
fact that it is already possible to circumvent the assignment
restriction when calling methods through interfaces (see issue
1402).
R=r, rsc, iant, ken2
CC=golang-dev
http://codereview.appspot.com/3926044
Issue 3926044: code review 3926044: go spec: adjust notion of Assignability
(Closed)
Created 14 years, 3 months ago by gri
Modified 14 years, 3 months ago
Reviewers:
Base URL:
Comments: 0