At 9:55 AM +0200 8/9/02, Peter Gibbs wrote:
>Peter Gibbs wrote:
>>       vtable method get_scalar(pmc)
>>       vtable method get_value(pmc, context)
>
>Having broken the rule of posting before drinking coffee in the morning,
>this is obviously nonsense - neither of these will work, because we don't
>know the return type of these functions. So, back to the original problem,
>with no suggested implementation method now!

I'm going to make the mistake of posting just going to bed, but...

I think we can punt on the original problem.

This:

   new P0, .PerlScalar
   new P1, .PerlArray
   assign P0, P1

isn't code that a compiler should be emitting. If it wants to 
duplicate perl's "array in scalar context is its length" behaviour, 
it should be:

   new P0, .PerlScalar
   new P1, .PerlArray
   set I0, P1
   assign P0, I0

Though I freely admit that's a big punt on the real problem, which we 
still need to address.

I'm up for suggestions, since sooner or later someone's going to emit 
code like that, and its nice to know what its supposed to do...
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to