[perl6/specs] 5d45b8: fix up bad edits by that Larry guy

2015-03-20 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 5d45b8277fd54b1c7e03adfd43e8ba835300dc35 https://github.com/perl6/specs/commit/5d45b8277fd54b1c7e03adfd43e8ba835300dc35 Author: TimToady Date: 2015-03-20 (Fri, 20 Mar 2015) Changed paths: M S02-bits.

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Tom Browder
On Mar 20, 2015 2:07 PM, "Will Coleda" wrote: > > > use Test; > > class bar { method foo () {}} > > ok bar.can("foo"), "stuff"; > ok 1 - stuff Oops (I say as I slap my forehead)! Thanks, Will. -Tom

[perl #124133] Case insensitive file systems bleed through to "use"

2015-03-20 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #124133] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124133 > on OS X, I can run "use TeSt;" And it works. If we can error on that, we probably should

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Will Coleda
> use Test; > class bar { method foo () {}} > ok bar.can("foo"), "stuff"; ok 1 - stuff On Fri, Mar 20, 2015 at 3:00 PM, Tom Browder wrote: > On Mar 20, 2015 1:50 PM, "Will Coleda" wrote: >> class bar { method foo () {}} >> my bar $a = bar.new(); >> say so $a.can("foo"); > > Great! > >> I'm not s

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Tom Browder
On Mar 20, 2015 1:51 PM, "Tobias Leich" wrote: > if $obj.^can($method_name) {... Thanks, Tobias. Cheers! -Tom

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Tom Browder
On Mar 20, 2015 1:50 PM, "Will Coleda" wrote: > class bar { method foo () {}} > my bar $a = bar.new(); > say so $a.can("foo"); Great! > I'm not sure this warrants a new _ok method. How would you do it with an existing test? Thanks, Will. Cheers! -Tom

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Tobias Leich
if $obj.^can($method_name) {... Am 20.03.2015 um 19:38 schrieb Tom Browder: > I am trying to create a testing subroutine to detect if a class object > has a certain method. > > I want it to look something like this: > > my $obj = Foo.new(); > can_ok($obj, 'method1'); > > sub can_ok($obj, Str

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Will Coleda
class bar { method foo () {}} my bar $a = bar.new(); say so $a.can("foo"); True my Int $b; say so $b.can("foo"); False I'm not sure this warrants a new _ok method. On Fri, Mar 20, 2015 at 2:38 PM, Tom Browder wrote: > I am trying to create a testing subroutine to detect if a class object > ha

Object Introspection for Existence of Methods: How?

2015-03-20 Thread Tom Browder
I am trying to create a testing subroutine to detect if a class object has a certain method. I want it to look something like this: my $obj = Foo.new(); can_ok($obj, 'method1'); sub can_ok($obj, Str $method_name) { if $obj.{$method_name}:exists { say "ok"; return True;

[perl #124120] Fwd: [libdigest-perl6] Issue with σ in expressions (#7)

2015-03-20 Thread via RT
# New Ticket Created by Noel Sharrock # Please include the string: [perl #124120] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124120 > Hi, I have a compile error using panda to install Digest module on a windows 8 with late

Re: [perl #124082] Conflicting Range values cannot be used

2015-03-20 Thread H.Merijn Brand
On Thu, 19 Mar 2015 12:02:36 -0700, "Carl Mäsak via RT" wrote: > I see two things in this ticket. Correct me if I'm wrong. > > > $ p6 -e'Num.Range.say' > > No such method 'Range' for invocant of type 'Num' > > in block at -e:1 > > First thing: Num doesn't have a Range coercer. > > > $ p6 -e

[perl6/specs] 0f5bdf: added NCI

2015-03-20 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 0f5bdf9d17ae996c2cd0910b5a4242f6722ca38a https://github.com/perl6/specs/commit/0f5bdf9d17ae996c2cd0910b5a4242f6722ca38a Author: Stéphane Payrard Date: 2015-03-19 (Thu, 19 Mar 2015) Changed paths: M S

[perl6/specs] 3d4f2d: s/callsame/nextsame/ for actual tailcall

2015-03-20 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 3d4f2dc8e6dab41aeca77d7a34c700ecaaefab70 https://github.com/perl6/specs/commit/3d4f2dc8e6dab41aeca77d7a34c700ecaaefab70 Author: TimToady Date: 2015-03-19 (Thu, 19 Mar 2015) Changed paths: M S06-routi

[perl6/specs] 4a1a77: update zavolaj

2015-03-20 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 4a1a774de4c06e954411af819f334ce43b7e17e2 https://github.com/perl6/specs/commit/4a1a774de4c06e954411af819f334ce43b7e17e2 Author: Stéphane Payrard Date: 2015-03-19 (Thu, 19 Mar 2015) Changed paths: M S

[perl6/specs] 56f6ad: typo spotted by FROGGS++

2015-03-20 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 56f6adf1e00e63f5d118374b3ea99099c567f2e2 https://github.com/perl6/specs/commit/56f6adf1e00e63f5d118374b3ea99099c567f2e2 Author: Stéphane Payrard Date: 2015-03-19 (Thu, 19 Mar 2015) Changed paths: M S

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: