On Jan 23, 2006, at 17:58, Chip Salzenberg wrote:
On Fri, Jan 13, 2006 at 02:29:49PM +0100, Leopold Toetsch wrote:
At argument opcodes level, a named argument are 2 items: name, var,
where the String 'name' is marked with the :named bit, e.g.:
set_args '(0, 0x80, 0, 0x80, 0)', a, 'c', c, 'b', b
I was pondering that issue earlier. Interleaving the strings with the
registers would complicate existing logic in get_params just a bit.
On the other hand, now that I think about it, :optional and :slurpy
flags are already making it impossible to deduce parameter counts from
the mere number of registers passed to get_params, so mixing in a few
entries that must be ignored for arg count purposes wouldn't be any big
deal. True?
Exactly. Well, :slurpy isn't a big deal, as it ususally doesn't cause
param count mismatch, :flat needs to be considered as C< ar.elems - 1 >
additional args. :optional and :opt_flag are already causing extra book
keeping of passed args.
leo