Skip to content
Tcl Source Code View Ticket
Login

View Ticket

documentation: wrong command in example for my

Closed / Fixed2c509f629112e03fd8af850b109c6fbd37cd6e70Created 11 years agoUpdated 11 years ago
Descriptionwiki2015-07-27 14:07:10
In the documentation for my, in the example the count method calls the command print: this should probably be puts.

Corrected code:

oo::class create c {
    method count {} {
        my variable counter
        puts [incr counter]
    }
}
Referenced by1
peterlewerin Ticket [2c509f6291]: 3 changes [History diff]2015-07-27 14:08:07
dkf Closed ticket [2c509f6291]. [History diff]2015-08-18 12:50:32
Log in (anonymous is fine) to add a comment.