Re: Object Contruction

2015-03-18 Thread Tom Browder
On Mar 18, 2015 5:25 PM, "Elizabeth Mattijsen" wrote: > YAPC::NC ?? You mean YAPC::NA? Yes, my fingers don't seem to work very well! > I will be there, Good, meeting Perl 6 devs is the only reason I think I might attend. > but haven’t had any inspiration for a presentation just yet. Do you

Re: Object Contruction

2015-03-18 Thread Elizabeth Mattijsen
> On 18 Mar 2015, at 23:21, Tom Browder wrote: > > You are correct, Liz, but I was trying those pieces to demonstrate to myself > that all was available to me in the methods and all worked as I expected. > > It demos very roughly what I think I have to do to translate Geo::Ellipsoid > to Perl

Re: Object Contruction

2015-03-18 Thread Tom Browder
You are correct, Liz, but I was trying those pieces to demonstrate to myself that all was available to me in the methods and all worked as I expected. It demos very roughly what I think I have to do to translate Geo::Ellipsoid to Perl 6. It's a WIP and I'm learning Perl 6 as I go. The prog is a

Re: Object Contruction

2015-03-18 Thread Elizabeth Mattijsen
> On 18 Mar 2015, at 21:32, Tom Browder wrote: > On Wed, Mar 18, 2015 at 11:32 AM, Tom Browder wrote: >> On Wed, Mar 18, 2015 at 7:22 AM, Moritz Lenz wrote: >> ... >>> http://doc.perl6.org/language/objects#Object_Construction lists at least two >>> possible ways. Probably the most interesting on

Re: Object Contruction

2015-03-18 Thread Tom Browder
On Wed, Mar 18, 2015 at 11:32 AM, Tom Browder wrote: > On Wed, Mar 18, 2015 at 7:22 AM, Moritz Lenz wrote: > ... >> http://doc.perl6.org/language/objects#Object_Construction lists at least two >> possible ways. Probably the most interesting one is BUILDALL with a >> callsame; see the last example

Re: Object Contruction

2015-03-18 Thread Tom Browder
On Wed, Mar 18, 2015 at 7:22 AM, Moritz Lenz wrote: ... > http://doc.perl6.org/language/objects#Object_Construction lists at least two > possible ways. Probably the most interesting one is BUILDALL with a > callsame; see the last example (or example skeleton) in that section. Thanks, Moritz, I re

Re: Object Contruction

2015-03-18 Thread Moritz Lenz
Hi On 03/18/2015 01:06 PM, Tom Browder wrote: My new object needs some methods run during construction. How can I do that without defining my own "new" method? http://doc.perl6.org/language/objects#Object_Construction lists at least two possible ways. Probably the most interesting one is BUI

Object Contruction

2015-03-18 Thread Tom Browder
My new object needs some methods run during construction. How can I do that without defining my own "new" method? I think something like this is supposed to work: class Geo::Ellipsoid; has $.ellipsoid is rw = 'WGS84'; # this needs more processing whether user-entered or default has $.units