[perl #124108] [BUG] reduce meta-operator fails with 'max' on list larger than 2**15 with MoarVM

2015-03-18 Thread via RT
# New Ticket Created by David Hoekman # Please include the string: [perl #124108] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124108 > In perl6 (version=2015.01-147-g949b809) under MoarVM (version=2015.01-69-g5bbfd1a): > p

[perl #124104] [PATCH] dealing with degenerate case for polymod.

2015-03-18 Thread via RT
# New Ticket Created by grond...@yahoo.fr # Please include the string: [perl #124104] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124104 > Hello, While writing a version of the Van der Corput sequence in http://rosettacode

Can a class have an attribute and a method with the same name?

2015-03-18 Thread Tom Browder
I have a class with an attribute and a method with the same name and it looks so far like they clash. If that should be possible (which I suspect is true), I'll continue to debug. Thanks. -Tom

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