--
Will "Coke" Coleda

On Dec 27, 2007, at 1:09 PM, "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote:

On Thu, Dec 27, 2007 at 07:56:35PM +0200, Allison Randal wrote:
Patrick R. Michaud wrote:
On Thu, Dec 27, 2007 at 07:15:40PM +0200, Allison Randal wrote:
With autoboxing/unboxing, there's not really a need to differentiate
between the PMC Integer/String/Float types and the I/S/N registers.

Coming into this discussion from the middle (and having not read
pdd15 in great detail), what about HLLs that map the I/S/N registers
to other autobox types (e.g., Int/Str/Num for perl6)?

If you were doing a multi dispatch on Int/Str/Num, wouldn't you want to
specify it as Int/Str/Num in the signature? The .HLL_map directive
should take care of the rest.

Yes, it would be specified as Int/Str/Num in the signature.  But
then invoking the multi with an I register or integer constant
should recognize 'Int' as being a match, and not just 'Integer'.

Pm


My concern here is HLL interop. I think it would be cleaner to specify the base types ( or perhaps a does ) to be generic enough to let another language invoke your multis.

Reply via email to