On Wed, 18 Sep 2002, Leopold Toetsch wrote: > Tom Hughes wrote: > > > In message <[EMAIL PROTECTED]> > > Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > > > > >>op dest[dkey], src1[skey1], src2[skey2] > >> > >>e.g. > >> > >>add P0[P1], P2, P3[P4] > > > There was however some discussion as to whether we wanted to limit > > keyed access to just the set/assign opcodes in order to avoid the > > explosion of ops that would occur if we supported keyed access > > directly on every op. > > The first question is, does a HL need such operations? Or better, > does/will it produce such operations?
Actually, if scratchpads become proper PMC's these ops would be incredibly useful and common. For example, "@a[0] = %b{1} + $c" might become add P0["@a";0], P0["%b";"1"], P0["$c"] This is rather speculative, but if many operations will be on lexicals as opposed to registers/temporaries, such hoariness might be worth it. /s