[ cc'ed list ]

Chip Salzenberg wrote:
On Tue, May 24, 2005 at 02:42:47PM -0400, Jeff Horwitz wrote:

.sub bar method, @MULTI(Foo, pmc)


At first blush, I think mmd based on representation choice ($I vs. $P)
is a mistake.  Why should an integer in a $P0 be mmd'd differently from
an integer in a $I?

I could of course be missing an important use case.

Dunno. But at least we already have MMD based on types and "int" vs "Integer" isn't special cased anymore. These are just different type numbers albeit not related. The problem is of course that you can't call the same subroutine with either a native int or an Integer PMC, if the sub isn't aware of that.

We'd need something like:

.sub foo @MULTI(Integer)
   I5 = P5
.sub_entry foo @MULTI(int)
   #  ... I5 already passed in

[ in terms of current pdd03 ]

Or we have some glue code that does the same.

leo


Reply via email to