develooper Front page | perl.perl6.internals | Postings from September 2002

Re: pdd06_pasm, pdd08_keys: _keyed ops

Thread Previous | Thread Next
From:
Tom Hughes
Date:
September 18, 2002 06:56
Subject:
Re: pdd06_pasm, pdd08_keys: _keyed ops
Message ID:
yekptvb1jxd.fsf@dutton.uk.cyberscience.com
In message <3D888259.4050201@toetsch.at>
        Leopold Toetsch <lt@toetsch.at> wrote:

> Tom Hughes wrote:
> 
> > You will still get horrible op explosion for a three argument op as
> > even if you assume that all PMCs are keyed, there are four key types
> > which, with three operands, gives you 64 ops in total.
> 
> No. We would have
> set_p_kc
> set_p_ki
> set_p_kic  ... special shortcut set/get, only one key per op allowed
> and
> op_p_k_p_k   ... unary keyed, all k are KEYs
> op_p_k_p_k_p_k  ... 3 keys bin op, all k are KEYs

So now the assembler has to know that set is special and can have all
four sorts of keys while the other ops only support dynamic keys?

> All 64 combinations would be a horror.

Indeed.

> But I really vote for a predereferencing like solution.

I didn't really understand that part of your previous message, but I
don't see what relevance that has to how the assembler decides on the
op name to use (and hence how to encode the arguments).

Tom

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About