|
From: antirez <an...@in...> - 2004-02-04 23:31:17
|
On Tue, Feb 03, 2004 at 10:16:22PM +0100, Peter Spjuth wrote:
> >Peter, would you be willing to amend the TIP accordingly?
>
> Yes.
> So, a core command available in a debug build.
> But what command should it be?
>
> info objtype
> tcl::objtype
> tcl::debug objtype
I don't think it's a good idea to put debug-only stuff inside
[info]. The [info] command has a precise role in introspection
that's a very important feature of Tcl not strictly related
with debugging. I suggest to put it in some debug-only command,
with sub commands for memory and so on, but I fear that the
memory debugging command is not build this way, but implemented
as a stand-alone command.
Regards,
Salvatore Sanfilippo
--
Salvatore Sanfilippo <antirez at invece dot org>
"However, there is a tension between making the language simpler and making the
organization of a system manifest. As the variety of costructs decreases, so
does the variety of linguistic clues of a system's structure." (Ungar and Smith)
|