code(n): Code Introspection and Manipulation -- quill(n)
SYNOPSIS
DESCRIPTION
COMMANDS
AUTHOR
SEE ALSO
package require quill 0.3.0
namespace import ::quill::*
code subcommand ?args...?
code getproc name
code(n) contains commands for introspection and manipulation of the
application's own code.
code(n) defines the following commands:
- code subcommand ?args...?
-
This command provides the following subcommands.
- code getproc name
-
Given a proc name, retrieves and returns the proc's definition
(including default values for optional arguments). If name
contains any namespaces, they are stripped; thus, any proc can be
redefined in any namespace or interpreter by writing code
like this:
namespace eval ::mynamespace:: [getproc ::other::myproc]
or
$interp eval [getproc ::other::myproc]
Will Duquette
quill(n).
Generated from code.manpage on Sat Nov 08 09:29:58 PST 2014