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

Re: Object Contruction

2015-03-18 Thread Tom Browder
On Wed, Mar 18, 2015 at 7:22 AM, Moritz Lenz mor...@faui2k3.org 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.

Re: Object Contruction

2015-03-18 Thread Tom Browder
On Wed, Mar 18, 2015 at 11:32 AM, Tom Browder tom.brow...@gmail.com wrote: On Wed, Mar 18, 2015 at 7:22 AM, Moritz Lenz mor...@faui2k3.org wrote: ... http://doc.perl6.org/language/objects#Object_Construction lists at least two possible ways. Probably the most interesting one is BUILDALL with a

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 23:21, Tom Browder tom.brow...@gmail.com 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

Re: Object Contruction

2015-03-18 Thread Elizabeth Mattijsen
On 18 Mar 2015, at 21:32, Tom Browder tom.brow...@gmail.com wrote: On Wed, Mar 18, 2015 at 11:32 AM, Tom Browder tom.brow...@gmail.com wrote: On Wed, Mar 18, 2015 at 7:22 AM, Moritz Lenz mor...@faui2k3.org wrote: ... http://doc.perl6.org/language/objects#Object_Construction lists at least two