Returning command from command
Posted to
tcl
by frerich at Tue Apr 26 09:39:23 GMT 2016
view raw
proc
p {x} {
proc
q {} "
return
$x
"
# 'can't read "q": no such variable'
# return $q
return
[
list
q]
}
# Would like this to work:
# puts [p 3]
puts
[[p 3]]
Recent Posts
tcl by Bradipo
5 mins ago
tcl by Bradipo
51 mins ago
lilypond by Bradipo
1 days ago
tcl by cgm
11 days ago
tcl by dandyn
20 days ago
tcl by Stu
21 days ago
tcl by dandyn
23 days ago
tcl by Stu
25 days ago
tcl by philbr-t
30 days ago
tcl by arjen
32 days ago
Submit
New paste
Documentation
From Jabber