Re: [perl #60124] MMD Fails to Resolve with Autoboxing and :optional Parameters

2008-10-27 Thread Bob Rogers
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 re

Re: [perl #60124] MMD Fails to Resolve with Autoboxing and :optional Parameters

2008-10-27 Thread chromatic
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

Re: [perl #60124] MMD Fails to Resolve with Autoboxing and :optional Parameters

2008-10-27 Thread chromatic
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 P

Re: [perl #60124] MMD Fails to Resolve with Autoboxing and :optional Parameters

2008-10-27 Thread Bob Rogers
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 > >s

Re: [perl #60124] MMD Fails to Resolve with Autoboxing and :optional Parameters

2008-10-27 Thread Patrick R. Michaud
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 wha