Tcl Source Code

View Ticket
Login
2015-08-18
12:50 Closed ticket [2c509f6291]: documentation: wrong command in example for my p... artifact: 6c498ef18c user: dkf
12:50
[2c509f6291] Minor documentation correction from Peter Lewerin. check-in: 2aa305b227 user: dkf tags: trunk
2015-07-27
14:08 Ticket [2c509f6291] documentation: wrong command in example for my status st... artifact: 0130708f47 user: peterlewerin
14:07 New ticket [2c509f6291]. artifact: 46f848b1ae user: peterlewerin

Ticket UUID: 2c509f629112e03fd8af850b109c6fbd37cd6e70
Title: documentation: wrong command in example for my
Type: Bug Created on: 2015-07-27 14:07:10
Submitter: peterlewerin Assigned to: dkf
Subsystem: 35. TclOO Package Severity: Minor
Priority: 5 Medium Last modified: 2015-08-18 12:50:32
Status: Closed Closed by: dkf
Resolution: Fixed Closed on: 2015-08-18 12:50:32
Version: 8.6.4
Description:

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]
    }
}