|
From: avl <av...@lo...> - 2017-02-14 17:50:39
|
On Tue, Feb 14, 2017 at 05:31:16PM +0100, Peter S wrote:
> During experimenting with this, I get a weird error that I don't understand:
> % proc array {name index} {return "$name\($index)"}
> % parray foo
> can't use non-numeric string as operand of "!"
That's just what you get from replacing standard commands like "array".
parray isn't there from beginning, but only gets loaded from Tcl's "::unknown"
procedure. This procedure, however expects [array size UnknownPending] to return
the *size* of an array named UnknownPending, not the string "size(UnknownPending)"
> "if {![array size UnknownPending]} {
|