> >       $S0 = array[$P0; $P1]

Leo suggested:
> ... If you really need a PMC for the key, you 
> have to create a Key PMC yourself.
> 
> E.g.
> 
>    k1 = new .Key
>    k1 = 1

That fragment works OK, but if I try to use a PMC instead of a literal
integer...

   k1 = new .Key
   $P0 = new .Integer
   $P0 = 73
   k1 = $P0

...then k1 just ends up as an .Integer with value 73. If, instead of
that last line, I try...

   assign k1, $P0

...then I get this message:

   this is broken - see slice.pmc

The Slice PMC doesn't include the string "assign", so I don't know what
this message is trying to tell me.

Maybe multidimensional array access using PMC indexes isn't supposed to
be working yet.

Regards,
Roger Browne


Reply via email to