Check me on this, but at line 6360
of tclCompCmds.c in TclCompileEnsemble(),
I see:
memcpy(synthetic.tokenPtr + 2, argTokensPtr,
sizeof(Tcl_Token) * (synthetic.numTokens - 2));
and I think that should be:
memcpy(synthetic.tokenPtr + 2*len, argTokensPtr,
sizeof(Tcl_Token) * (synthetic.numTokens - 2*len));
Probably all of the core ensembles that
get compiled have (len == 1) so no problem
so far, but if the aim is a general facility,
multi-word subcommand targets should be
done right.
Logged In: YES
user_id=80530
Originator: YES
Less important, but I see some
comments in the routine referring
to [info exists] that appear to
be out of date as well?
Logged In: YES
user_id=79902
Originator: NO
Darn, it should be 2*len indeed.