On Sun, Oct 26, 2008 at 09:37:36PM -0400, Bob Rogers wrote:
.sub 'main' :main
foo('Hello')
.end
.sub foo :multi(String)
.param pmc s
say s
.end
[...]
Which brings us to an interesting question: How can you decide what
type
From: Patrick R. Michaud [EMAIL PROTECTED]
Date: Mon, 27 Oct 2008 13:32:02 -0500
On Sun, Oct 26, 2008 at 09:37:36PM -0400, Bob Rogers wrote:
.sub 'main' :main
foo('Hello')
.end
.sub foo :multi(String)
.param pmc s
say s
On Monday 27 October 2008 19:26:31 Bob Rogers wrote:
All true. But it's unfortunate that the Parrot type system considers
int and Integer unrelated. As a result, MMD prevents autoboxing
(when chromatic and I had expected otherwise).
I'm not sure it's the type system as much as it is
On Monday 27 October 2008 19:36:58 chromatic wrote:
I think I know how to promote primitive registers to their
autoboxed PMCs in that function; Parrot's calling conventions should take
care of the rest.
Fixed in r32211. All tests pass (including the TODO test I added for this).
-- c
From: chromatic [EMAIL PROTECTED]
Date: Mon, 27 Oct 2008 20:00:50 -0700
On Monday 27 October 2008 19:36:58 chromatic wrote:
I think I know how to promote primitive registers to their
autoboxed PMCs in that function; Parrot's calling conventions should take
care of the rest.
# New Ticket Created by chromatic
# Please include the string: [perl #60124]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60124
I expect this code to dispatch properly; autoboxing works and :optional
parameters
From: chromatic (via RT) [EMAIL PROTECTED]
Date: Sat, 25 Oct 2008 18:21:26 -0700
# New Ticket Created by chromatic
# Please include the string: [perl #60124]
# in the subject line of all future correspondence about this issue.
# URL: