[perl #64928] The undefinedness of optional arguments and typed attributes in Rakudo

2013-06-20 Thread Carl Mäsak via RT
On Tue Apr 21 06:35:05 2009, masak wrote: > but... I just want a nice way to see if the hash was passed or > not. > [...] > the problem is that we're doing in-band communication > instead of asking the hash parameter if it was defined, we > should ask the capture if that hash was given > aye. >

[perl #64928] The undefinedness of optional arguments and typed attributes in Rakudo

2010-08-15 Thread Carl Mäsak via RT
On Tue Apr 21 06:35:05 2009, masak wrote: > Apologies, the below discussion is long and involved. I've tried to > simplify and reduce as much as I can. > > rakudo: class A { multi method dispatch(@chunks, %param?) { > say %param.perl, defined %param } }; A.new.dispatch([1,2,3]); > A.new.dispatch(

[perl #64928] The undefinedness of optional arguments and typed attributes in Rakudo

2009-04-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #64928] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=64928 > Apologies, the below discussion is long and involved. I've tried to simplify and reduce