No new test?
On Thu, Feb 20, 2014 at 10:17 AM, <cmang@golang.org> wrote:
> Reviewers: gri, rsc,
>
> Message:
> Hello gri@golang.org, rsc@golang.org (cc:
> golang-codereviews@googlegroups.com),
>
> I'd like you to review this change to
> https://code.google.com/p/go
>
>
> Description:
> cmd/gc: make embedded, unexported fields read-only.
>
> Fixes issue 7363.
>
> Please review this at https://codereview.appspot.com/66510044/
>
> Affected files (+2, -1 lines):
> M src/cmd/gc/reflect.c
>
>
> Index: src/cmd/gc/reflect.c
> ===================================================================
> --- a/src/cmd/gc/reflect.c
> +++ b/src/cmd/gc/reflect.c
> @@ -1127,7 +1127,8 @@
> ot = dgopkgpath(s, ot,
> t1->sym->pkg);
> } else {
> ot = dgostringptr(s, ot, nil);
> - if(t1->type->sym != S &&
> t1->type->sym->pkg == builtinpkg)
> + if(t1->type->sym != S &&
> + (t1->type->sym->pkg == builtinpkg ||
> !exportname(t1->type->sym->name)))
> ot = dgopkgpath(s, ot, localpkg);
> else
> ot = dgostringptr(s, ot, nil);
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
yes, please add a test case
On Thu, Feb 20, 2014 at 10:19 AM, Brad Fitzpatrick <bradfitz@golang.org>wrote:
> No new test?
>
>
>
> On Thu, Feb 20, 2014 at 10:17 AM, <cmang@golang.org> wrote:
>
>> Reviewers: gri, rsc,
>>
>> Message:
>> Hello gri@golang.org, rsc@golang.org (cc:
>> golang-codereviews@googlegroups.com),
>>
>> I'd like you to review this change to
>> https://code.google.com/p/go
>>
>>
>> Description:
>> cmd/gc: make embedded, unexported fields read-only.
>>
>> Fixes issue 7363.
>>
>> Please review this at https://codereview.appspot.com/66510044/
>>
>> Affected files (+2, -1 lines):
>> M src/cmd/gc/reflect.c
>>
>>
>> Index: src/cmd/gc/reflect.c
>> ===================================================================
>> --- a/src/cmd/gc/reflect.c
>> +++ b/src/cmd/gc/reflect.c
>> @@ -1127,7 +1127,8 @@
>> ot = dgopkgpath(s, ot,
>> t1->sym->pkg);
>> } else {
>> ot = dgostringptr(s, ot, nil);
>> - if(t1->type->sym != S &&
>> t1->type->sym->pkg == builtinpkg)
>> + if(t1->type->sym != S &&
>> + (t1->type->sym->pkg == builtinpkg ||
>> !exportname(t1->type->sym->name)))
>> ot = dgopkgpath(s, ot, localpkg);
>> else
>> ot = dgostringptr(s, ot, nil);
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-codereviews" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-codereviews+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
Issue 66510044: code review 66510044: cmd/gc: make embedded, unexported fields read-only.
(Closed)
Created 11 years ago by cmang
Modified 11 years ago
Reviewers:
Base URL:
Comments: 2