Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Tom Browder
On Sun, Mar 22, 2015 at 7:48 PM, Henk van Oers wrote: > On Sun, 22 Mar 2015, Tom Browder wrote: >> Do Perl 6 modules not need tests? > Yes they need tests. >> If so, which ones do they need? > The public interface. >> and which can be left off? > The private stuff. > You can not test for 'random_

Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Henk van Oers
On Sun, 22 Mar 2015, Tom Browder wrote: On Sun, Mar 22, 2015 at 7:13 PM, Henk van Oers wrote: On Sun, 22 Mar 2015, Tom Browder wrote: I'm trying to write a test. To test what? Your own typo's? The tests are for a public Perl 6 module translated from an existing Perl 5 module. Do Perl 6 mo

Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Tom Browder
On Sun, Mar 22, 2015 at 7:13 PM, Henk van Oers wrote: > On Sun, 22 Mar 2015, Tom Browder wrote: >> I'm trying to write a test. > To test what? Your own typo's? The tests are for a public Perl 6 module translated from an existing Perl 5 module. Do Perl 6 modules not need tests? If so, which ones

Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Henk van Oers
On Sun, 22 Mar 2015, Tom Browder wrote: On Sun, Mar 22, 2015 at 6:22 PM, Henk van Oers wrote: On Sun, 22 Mar 2015, Tom Browder wrote: On Fri, Mar 20, 2015 at 2:02 PM, Tom Browder wrote: On Mar 20, 2015 1:51 PM, "Tobias Leich" wrote: if $obj.^can($method_name) {... That doesn't seem to wo

Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Tom Browder
On Sun, Mar 22, 2015 at 6:22 PM, Henk van Oers wrote: > On Sun, 22 Mar 2015, Tom Browder wrote: >> On Fri, Mar 20, 2015 at 2:02 PM, Tom Browder >> wrote: >>> On Mar 20, 2015 1:51 PM, "Tobias Leich" wrote: if $obj.^can($method_name) {... >> That doesn't seem to work with private methods. An

Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Henk van Oers
On Sun, 22 Mar 2015, Tom Browder wrote: On Fri, Mar 20, 2015 at 2:02 PM, Tom Browder wrote: On Mar 20, 2015 1:51 PM, "Tobias Leich" wrote: if $obj.^can($method_name) {... That doesn't seem to work with private methods. Any trick to accomplish that? What part of 'private' did you mis? I

Re: Object Introspection for Existence of Methods: How?

2015-03-22 Thread Tom Browder
On Fri, Mar 20, 2015 at 2:02 PM, Tom Browder wrote: > On Mar 20, 2015 1:51 PM, "Tobias Leich" wrote: >> if $obj.^can($method_name) {... That doesn't seem to work with private methods. Any trick to accomplish that? -Tom

[perl #124147] pow edge cases with rakudo-moar on NetBSD

2015-03-22 Thread via RT
# New Ticket Created by steve mynott # Please include the string: [perl #124147] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124147 > Various libm (power) issues with rakudo-moar on NetBSD which show themselves as roast fa

[perl #124150] [BUG] Match.caps is inconsistent across backends

2015-03-22 Thread via RT
# New Ticket Created by Pepe Schwarz # Please include the string: [perl #124150] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124150 > 19:57 j: say ("a" ~~ / & & /).caps 19:57 rakudo-jvm 5778e8: OUTPUT«ident => 「a」 alnum

[perl #124149] [BUG] Declarative and procedural conjunctions in regex don't remember the keys of positional captures

2015-03-22 Thread via RT
# New Ticket Created by Pepe Schwarz # Please include the string: [perl #124149] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124149 > 19:43 < psch> m: say ("a" ~~ /(.) | ./); say ("a" ~~ /(.) & ./) 19:43 <+camelia> rakudo-m

[perl #124148] random hash order in .perl method on moar

2015-03-22 Thread via RT
# New Ticket Created by David Warring # Please include the string: [perl #124148] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124148 > The perl method on Rakudo/MoarVM currently outputs has entries in a random order:

[perl6/specs] c1a2f0: S32::IO: lines does not have :nl, open does. `7stu...

2015-03-22 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: c1a2f0bd4b3829b762b3b136b8844da9d9b89355 https://github.com/perl6/specs/commit/c1a2f0bd4b3829b762b3b136b8844da9d9b89355 Author: Moritz Lenz Date: 2015-03-21 (Sat, 21 Mar 2015) Changed paths: M S32-se

[perl #124144] &uniname on Moar throws confusingly

2015-03-22 Thread via RT
# New Ticket Created by Pepe Schwarz # Please include the string: [perl #124144] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124144 > 15:45 < psch> m: say uniname -1 15:45 <+camelia> rakudo-moar 20ffd3: OUTPUT«should eventu

[perl #124142] Something is off with multi dispatch, natives and where clauses

2015-03-22 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #124142] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124142 > moritz@pat:~/p6/rakudo>cat ack.p6 proto a(int, int) {*}; multi a(int $ where 0, int \n) {

[perl #124141] Error message could be more clear

2015-03-22 Thread via RT
# New Ticket Created by # Please include the string: [perl #124141] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124141 > The core problem is that "Invalid typename", while *technically* correct, isn't as helpful as it cou