From: InetDavid on 5 Apr 2010 17:38 I'd like to use an Array as a TclOO variable for internal storage. The object would never pass the Array itself outside the object. Instead, I'll have access methods for accessing the Array. Is there a way to have an Array in a TclOO object? If so, how would you specify it, initialize it and use it in a method? Thank you! David Schmidt dschmidt(a)ciena.com
From: George Petasis on 5 Apr 2010 18:08 στις 6/4/2010 12:38 πμ, O/H InetDavid έγραψε: > I'd like to use an Array as a TclOO variable for internal storage. > The object would never pass the Array itself outside the object. > Instead, I'll have access methods for accessing the Array. Is there a > way to have an Array in a TclOO object? If so, how would you specify > it, initialize it and use it in a method? > > Thank you! > > David Schmidt > dschmidt(a)ciena.com Like any other variable: consructor {args} { my variable array_var set array_var(x) 1 } method some_method {} { my variable array_var parray array_var } George
|
Pages: 1 Prev: Junit like test report with tcltest?? Next: rename: delete proc inside itself |