confused about 'try'

2015-11-23 Thread brad clawsie
Been playing with perl6 and it is truly amazing. I'm somewhat confused as to when I should should wrap subroutine invocations with `try`. My `CATCH` clauses seem to be able to catch thrown Exception instances if I use `try` or not. I see in the "Exceptional Perl 6" slide deck ( http://moritz.faui2

[perl #126718] [UNWANTED BEHAVIOUR] use lib and -I switch can duplicate directories in @*INC

2015-11-23 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #126718] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126718 > Consider this: m: use lib 'lib'; use lib 'lib'; use lib 'lib'; say @*INC.grep(* eq 'fil

[perl #126721] $/ in closure arg of subst

2015-11-23 Thread via RT
# New Ticket Created by raiph # Please include the string: [perl #126721] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126721 > What I did == $/ := "Uhoh"; put "Foo".subst: /Foo/, -> $/ {$/}; put "Foo".subst: /Foo/,

[perl #126717] [BUG] Exception generated within the .message method of a thrown exception is silently swallowed

2015-11-23 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126717] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126717 > m: class X::Test is Exception { method message { $.x } }; die X::Test.new rakudo-moar :

[perl #125196] [BUG] Variable scopes with 'start' block

2015-11-23 Thread jn...@jnthn.net via RT
On Thu May 14 12:49:54 2015, tony.od...@live.com wrote: > CODE: > - > my $promise = start { sleep 1; $*E.say;}; > my $*E = 5; > await $promise; > - > EXPECTED: > - > 5--

[perl #74900] [BUG] A definite nothing should be narrower than two possible somethings in Rakudo

2015-11-23 Thread jn...@jnthn.net via RT
On Tue May 04 13:49:19 2010, masak wrote: > the lack of an argument counts as narrower than a slurpy. > but what about a single optional? > rakudo: multi foo() { say "OH HAI" }; multi foo(Int $a?) {}; > multi foo(Str $a?) {}; foo > rakudo 1eef08: OUTPUT«Ambiguous dispatch to multi 'foo'. > Ambi

[perl #126714] [BUG] attr type via role param seems to break attr default value

2015-11-23 Thread via RT
# New Ticket Created by Justin DeVuyst # Please include the string: [perl #126714] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126714 > [jdv@wieldy ~]$ perl6 -e 'role R {has Any $.a};R.new.a.say' # as expected (Any) [jdv@w

[perl #126713] [BUG] Literal array interpolation in regex doesn't match as expected.

2015-11-23 Thread via RT
# New Ticket Created by Pepe Schwarz # Please include the string: [perl #126713] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126713 > Consider the following two regexen and their matching output, or lack thereof: 11:39 < p

[perl #72580] [BUG] Bool enum values don't smartmatch against Int in Rakudo

2015-11-23 Thread jn...@jnthn.net via RT
On Thu Nov 15 05:08:56 2012, bbkr wrote: > 2012.10 - still broken > > $ perl6 -e 'enum X ; say a ~~ Int; say True ~~ Int' > True > False Fixed now; nine++ did the majority of the hard work, and I cleaned up the last few issues just now and merged the work and spectest updates, including coverag

[perl #126712] destructuring without calling a function

2015-11-23 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #126712] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126712 > Is it supported? What is the syntax? My attempts to use it fail even if the same exam