Skip to content
Tcl Source Code View Ticket
Login

View Ticket

invokehidden -namespace|global: no [info level]

Open2978770fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-03-29 19:20:08
proc stack {} {
    set l [info level]
    incr l -1
    set s $l:
    while {$l} {
        append s \n\t$l: [info level $l]
        incr l -1
    }
    return $s
}
proc hideme {} {
    puts [stack]
}
hideme
interp hide {} hideme
interp invokehidden {} hideme
interp invokehidden {} -namespace {} hideme

OUTPUT:
1:
        1:hideme
1:
        1:hideme
2:
        2:hideme
        1:

There's an extra CallFrame to provide the
context switch forced by -namespace, which
creates another [info level], but that frame
holds an empty objv.

Not sure what, if anything ought to be there.

The same absence of data will show up in 
the proposed -errorstack.
Log in (anonymous is fine) to add a comment.