proc named "#"



Is there a way to define proc named "#"; In other words: Can I define

proc # {args} { puts $args }

Defining above proc does not produce any error. However, when
executing # as command, interpreter still treats as comment line

% proc # {args} {puts [lindex $args 0]}
% info body #
puts [lindex $args 0]

Good.. now let me execute # as command
% # blah blah1


----nothing returned.. Ok.. Let me eval w/ []...
% puts [# blah blah1]
]

----looks like I need to have eol and then close ].. still # is
interpreted as comment line and not as proc #

:(

Jay
.



Relevant Pages

  • Re: proc named "#"
    ... executing # as command, interpreter still treats as comment line ... puts ...
    (comp.lang.tcl)
  • Re: tclapp wrap problem in HP unix system
    ... The only thing that comes to my mind is that the command "package ... while executing ... When I use Tclapp GUI interface, I never add interpreter, some of my ...
    (comp.lang.tcl)
  • Re: proc named "#"
    ... executing # as command, interpreter still treats as comment line ... puts ...
    (comp.lang.tcl)
  • Re: (newbie) storing outputs from all lines of procs into a string
    ... > "gimmedat" on the prompt ... > if I typed "gimmedat" at the command line REDIRECTED to a string ... master's original puts. ... procedure in the current interpreter, ...
    (comp.lang.tcl)
  • Re: run system command as user
    ... that is executing the ruby script. ... su (and somehow supply the correct password), then run the command? ... puts stdin.read.lstrip ...
    (comp.lang.ruby)