proc named "#"
- From: Jay <apnayaar@xxxxxxxxx>
- Date: Mon, 28 May 2012 19:22:38 -0700 (PDT)
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
.
- Follow-Ups:
- Re: proc named "#"
- From: Uwe Klein
- Re: proc named "#"
- From: George Petasis
- Re: proc named "#"
- Prev by Date: Re: Tk label displays escape code instead of Unicode
- Next by Date: Will epoll kquue tcl interpreter happen soon? or be upgrade?
- Previous by thread: Tk label displays escape code instead of Unicode
- Next by thread: Re: proc named "#"
- Index(es):
Relevant Pages
|