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