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
tcl by emiliano
10 days ago
tcl by dandyn
10 days ago
tcl by schelte
17 days ago
tcl by bohagan
20 days ago
tcl by emiliano
21 days ago
tcl by emiliano
21 days ago
tcl by kevin_walzer
23 days ago
tcl by meissa
23 days ago
tcl by meissa
23 days ago
tcl by meissa
23 days ago
Submit
New paste
Documentation
From Jabber