access oo object variables
Posted to
tcl
by apn at Fri Jan 03 05:56:34 GMT 2020
view raw
% oo::class create C {
variable
x ; constructor {} {
set
x 42} }
::C
% C create o
::o
%
set
nso [
info
object
namespace
o]
::oo::Obj65
%
set
${nso}
::x
42
Recent Posts
decenhash by decenhash
5 days ago
tcl by Bradipo
5 days ago
tcl by kbk
16 days ago
tcl by oldlaptop
19 days ago
tcl by Julian Noble
25 days ago
tcl by oldlaptop
48 days ago
tcl by dandyn
53 days ago
tcl by oldlaptop
56 days ago
tcl by apn
58 days ago
tcl by rmax
61 days ago
Submit
New paste
Documentation
From Jabber