Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-06-12
08:38 • New ticket [0d44b11885] info cmdtype status for safe interps. artifact: 0057549be9 user: juliannoble2

info cmdtype status for safe interps

Open0d44b11885a76f14f17c8d690ee2216792955938Created 2 years agoUpdated 2 years ago
Descriptionplain2024-06-12 08:38:20
info cmdtype was added to the UnsafeEnsembleInfo array in tclBasic.c in 2018 - but the addition seems somewhat anomalous.

I can use other info introspection commands regarding oo objects, and interp alias allows inspection of aliases anyway - even those that are targeting commands in the master interp.

If the intention is that certain aliases shouldn't be visible - that doesn't seem to be happening anyway.  Can info cmdtype reasonably be removed from the UnsafeEnsembleInfo array?

It's useful to be able to detect cmdtypes of native, interp etc from within a safe interp - and these can mostly be deduced or calculated in a safe interp anyway - just not efficiently.
Log in (anonymous is fine) to add a comment.