|
|
DescriptionFixes issue 1324.
Patch Set 1 #Patch Set 2 : code review 3435042: Fixes issue 1324. #Patch Set 3 : code review 3435042: Fixes issue 1324. #Patch Set 4 : code review 3435042: Fixes issue 1324. #Patch Set 5 : code review 3435042: Fixes issue 1324. #Patch Set 6 : code review 3435042: Fixes issue 1324. #Patch Set 7 : code review 3435042: Fixes issue 1324. #Patch Set 8 : code review 3435042: Fixes issue 1324. #Patch Set 9 : code review 3435042: Fixes issue 1324. #Patch Set 10 : code review 3435042: Fixes issue 1324. #MessagesTotal messages: 36
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
Sign in to reply to this message.
Issue 1324 is not a bug.
Sign in to reply to this message.
Actually, I take it back. There is a bug. But I am not yet sure what the bug is: the error or the error message. This CL only changes the error message. Russ
Sign in to reply to this message.
On Thursday, 9 December 2010, Russ Cox <rsc@google.com> wrote: > Actually, I take it back. There is a bug. > But I am not yet sure what the bug is: > the error or the error message. > This CL only changes the error message. > Perhaps listing both the pointer type and the original type in the error message is the way to go? I can modify and re-submit accordingly if required. -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
See issue; we believe the error is incorrect (the program is valid). Russ
Sign in to reply to this message.
On 9 December 2010 19:51, Russ Cox <rsc@google.com> wrote: > See issue; we believe the error is incorrect > (the program is valid). Okay, I have a patch which appears to fix this, however bug117.go in test/fixedbugs specifically checks whether a pointer type's methods are resolved from its underlying type, and fails if so, which is precisely what the patch is making the case :) So is it definitely the case that we want to be able to access the methods of the underlying type of a pointer type, in which case this is not a bug and should be removed, or is this test failure valid, in which case what is the way forward with resolving this bug? -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Would it be easier for me to just submit the patch? :) On 1 January 2011 12:33, Lorenzo Stoakes <lstoakes@gmail.com> wrote: > On 9 December 2010 19:51, Russ Cox <rsc@google.com> wrote: >> See issue; we believe the error is incorrect >> (the program is valid). > > Okay, I have a patch which appears to fix this, however bug117.go in > test/fixedbugs specifically checks whether a pointer type's methods > are resolved from its underlying type, and fails if so, which is > precisely what the patch is making the case :) > > So is it definitely the case that we want to be able to access the > methods of the underlying type of a pointer type, in which case this > is not a bug and should be removed, or is this test failure valid, in > which case what is the way forward with resolving this bug? > > -- > Lorenzo Stoakes > http://www.codegrunt.co.uk > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Sure. I haven't had a chance to dig into the test case, though I did get so far as opening the file today. :-)
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
There should be a test. Russ
Sign in to reply to this message.
I will add one. Actually I notice now that bug117.go is generating an internal compiler error (whereas it should now compile fine) - I will look at fixing this and submit an updated patch along with a test when done. Lorenzo On 5 January 2011 17:33, Russ Cox <rsc@google.com> wrote: > There should be a test. > > Russ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Apologies for the duplication, having issues getting mercurial to recognise I have added a test file as well as modified bug117.go. Lorenzo On 6 January 2011 00:06, <lstoakes@gmail.com> wrote: > Hello rsc1 (cc: golang-dev@googlegroups.com), > > Please take another look. > > > http://codereview.appspot.com/3435042/ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Ok; it appears I can send them as a separate patch; will do that. On 6 January 2011 00:07, Lorenzo Stoakes <lstoakes@gmail.com> wrote: > Apologies for the duplication, having issues getting mercurial to > recognise I have added a test file as well as modified bug117.go. > > Lorenzo > > On 6 January 2011 00:06, <lstoakes@gmail.com> wrote: >> Hello rsc1 (cc: golang-dev@googlegroups.com), >> >> Please take another look. >> >> >> http://codereview.appspot.com/3435042/ >> > > > > -- > Lorenzo Stoakes > http://www.codegrunt.co.uk > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Cool, all done (as you can see below :-) Still getting used to all this, so forgive my being slow on the uptake!! Lorenzo On 6 January 2011 00:19, <lstoakes@gmail.com> wrote: > Hello rsc1 (cc: golang-dev@googlegroups.com), > > Please take another look. > > > http://codereview.appspot.com/3435042/ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Cleaned up typecheck.c patch - had inadvertently added unwanted space and changed indentation; I need to transform spaces -> tabs, will perform one more update to fix that. Lorenzo On 6 January 2011 14:39, <lstoakes@gmail.com> wrote: > Hello rsc1 (cc: golang-dev@googlegroups.com), > > Please take another look. > > > http://codereview.appspot.com/3435042/ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Thanks for identifying that bug117 changes. We need to decide what the language spec is before we can apply this change. I've updated the issue. Russ
Sign in to reply to this message.
Any movement on this at all? I am happy to modify the error message to be more readable if bug117.go ought to legitimately cause an error :-) Cheers, Lorenzo On 6 January 2011 15:45, Russ Cox <rsc@google.com> wrote: > Thanks for identifying that bug117 changes. > We need to decide what the language spec is before > we can apply this change. I've updated the issue. > > Russ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
No, there hasn't been any movement. I think this is going to be rather low priority. Russ
Sign in to reply to this message.
Okay, no probs :) Lorenzo On 13 January 2011 18:17, Russ Cox <rsc@google.com> wrote: > No, there hasn't been any movement. > I think this is going to be rather low priority. > > Russ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Hello rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
Just to clarify; given the discussion over at the issue page for issue 1324 (http://code.google.com/p/go/issues/detail?id=1324), this CL implements a change in error message to report the correct type in the following scenario:- type T struct{} type P *T func (t *T) Meth() {} func (t T) Meth2() {} func main() { t := &T{} p := P(t) p.Meth() // error p.Meth2() // error } Currently, go reports:- p.Meth undefined (type T has no field or method Meth) p.Meth2 undefined (type T has no field or method Meth2) However this error message is incorrect, as the problem is not that T has no field/method Meth/Meth2, but rather that P doesn't. The CL fixes the error message to say:- p.Meth undefined (type P has no field or method Meth) p.Meth2 undefined (type P has no field or method Meth2) - Lorenzo On 8 February 2011 06:10, <lstoakes@gmail.com> wrote: > Hello rsc1 (cc: golang-dev@googlegroups.com), > > Please take another look. > > > http://codereview.appspot.com/3435042/ > -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
LGTM Thanks for seeing this through.
Sign in to reply to this message.
On 11 February 2011 21:47, Russ Cox <rsc@google.com> wrote: > LGTM > > Thanks for seeing this through. > No problem, glad to be able to contribute to an awesome project :) hope to contribute some more in the future too. -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
Please add explanatory info to the CL description so it's useful in isolation.
Sign in to reply to this message.
*** Submitted as 2562ce5a7a4b *** gc: correct receiver in method missing error Fixes issue 1324. R=rsc1, r, rsc CC=golang-dev http://codereview.appspot.com/3435042 Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.
On 11 February 2011 22:44, Rob 'Commander' Pike <r@golang.org> wrote: > Please add explanatory info to the CL description so it's useful in isolation. > The issue has been closed; is there a way of doing this other than via an hg update? Sorry I am rather new to the process :) -- Lorenzo Stoakes http://www.codegrunt.co.uk
Sign in to reply to this message.
On Feb 11, 2011, at 3:11 PM, Lorenzo Stoakes wrote: > On 11 February 2011 22:44, Rob 'Commander' Pike <r@golang.org> wrote: >> Please add explanatory info to the CL description so it's useful in isolation. >> > > The issue has been closed; is there a way of doing this other than via > an hg update? Sorry I am rather new to the process :) > > -- > Lorenzo Stoakes > http://www.codegrunt.co.uk It's easy to do before you submit; you can do it right on the codereview site, or just run hg change and edit the text. After it's submitted, well, it's submitted. -rob
Sign in to reply to this message.
I did it before I submitted. Russ On Feb 11, 2011 7:11 PM, "Rob 'Commander' Pike" <r@google.com> wrote: > > On Feb 11, 2011, at 3:11 PM, Lorenzo Stoakes wrote: > >> On 11 February 2011 22:44, Rob 'Commander' Pike <r@golang.org> wrote: >>> Please add explanatory info to the CL description so it's useful in isolation. >>> >> >> The issue has been closed; is there a way of doing this other than via >> an hg update? Sorry I am rather new to the process :) >> >> -- >> Lorenzo Stoakes >> http://www.codegrunt.co.uk > > It's easy to do before you submit; you can do it right on the codereview site, or just run hg change and edit the text. After it's submitted, well, it's submitted. > > > -rob >
Sign in to reply to this message.
http://codereview.appspot.com/3435042/ doesn't show any edit -rob
Sign in to reply to this message.
On Fri, Feb 11, 2011 at 19:19, Rob 'Commander' Pike <r@google.com> wrote: > http://codereview.appspot.com/3435042/ doesn't show any edit no, i can't change that. but i ran hg change between clpatch and submit so that the log entry has the new description: http://code.google.com/p/go/source/detail?r=2562ce5a7a4bb7 it was in the submitted mail too: *** Submitted as 2562ce5a7a4b *** gc: correct receiver in method missing error Fixes issue 1324. R=rsc1, r, rsc CC=golang-dev http://codereview.appspot.com/3435042 Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.
|