Will Duquette
unread,Jun 19, 2013, 12:45:57 PM6/19/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Suppose you want to reference an instance variable inside a TclOO method. You can do this:
method foo {} {
my variable counter
incr counter
}
But you can also do this, which seems to have the same effect:
method foo {} {
variable counter
incr counter
}
Both create a variable "counter" in the instance's namespace. Practically speaking, is there a difference?