Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-20 Thread Tom Browder
On Thu, Mar 19, 2015 at 9:26 PM, Tom Browder wrote: > On Mar 19, 2015 8:58 PM, "Brandon Allbery" wrote: >> On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder >> wrote: >>> >>> if (self.$elem) { # <=== LINE 995 === LINE 995 >> This is an indirect method call. Is that really what you

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-20 Thread Moritz Lenz
On 03/20/2015 11:00 AM, Timo Paulssen wrote: On 03/20/2015 03:40 AM, Brandon Allbery wrote: On Thu, Mar 19, 2015 at 10:33 PM, Tom Browder mailto:tom.brow...@gmail.com>> wrote: Why do you say that is not a method? The first line says Sorry, somehow I managed to misread that. So you wa

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-20 Thread Timo Paulssen
On 03/20/2015 03:40 AM, Brandon Allbery wrote: > > On Thu, Mar 19, 2015 at 10:33 PM, Tom Browder > wrote: > > Why do you say that is not a method? The first line says > > > Sorry, somehow I managed to misread that. > > So you want what I have already said twice:

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Tom Browder
Thanks for pointing out the error and the best practice comment. When I get the method to do what I really want I will post the solution. Best, -Tom

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Brandon Allbery
On Thu, Mar 19, 2015 at 10:33 PM, Tom Browder wrote: > Why do you say that is not a method? The first line says Sorry, somehow I managed to misread that. So you want what I have already said twice: the accessor `self.elem`. If you want to access the variable directly for some reason, you use

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Tom Browder
On Mar 19, 2015 9:30 PM, "Brandon Allbery" wrote: > Unless there is more that you didn't show, that function is not a method and has no `self`. [Please ignore last msg sent prematurely.] Why do you say that? The first line says it is a private method. -Tom

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Tom Browder
On Mar 19, 2015 9:30 PM, "Brandon Allbery" wrote: > > On Thu, Mar 19, 2015 at 10:26 PM, Tom Browder wrote: >> >> On Mar 19, 2015 8:58 PM, "Brandon Allbery" wrote: >> > On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder wrote: >> >> >> >> if (self.$elem) { # <=== LINE 995 === LINE

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Brandon Allbery
On Thu, Mar 19, 2015 at 10:26 PM, Tom Browder wrote: > On Mar 19, 2015 8:58 PM, "Brandon Allbery" wrote: > > On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder > wrote: > >> > >> if (self.$elem) { # <=== LINE 995 === LINE 995 > > This is an indirect method call. Is that really wha

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Tom Browder
On Mar 19, 2015 8:58 PM, "Brandon Allbery" wrote: > On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder wrote: >> >> if (self.$elem) { # <=== LINE 995 === LINE 995 > This is an indirect method call. Is that really what you intended? No, it's supposed to be the value of the self attr

Re: Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Brandon Allbery
On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder wrote: > if (self.$elem) { # <=== LINE 995 === LINE 995 > This is an indirect method call. Is that really what you intended? If you wanted the `my` variable, it's just `$elem`. If you somehow have an object in scope there (I don'

Need help with: Cannot find method 'postcircumfix:<( )>'...

2015-03-19 Thread Tom Browder
The error message is: Cannot find method 'postcircumfix:<( )>' in method _normalize_output at /usr/local/people/tbrowde/mydata/tbrowde-home-bzr/perl6/my-perl6-repos/Geo-Ellipsoid/test/../lib/Geo/Ellipsoid.pm:995 in method to at /usr/local/people/tbrowde/mydata/tbrowde-home-bzr/perl6/my-perl6-r