Skip to content
Tcl Source Code View Ticket
Login

View Ticket

apply(n) man page: example has bug

Closed / Fixed1811791fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-10-11 19:33:45
This relates to the last example in the apply man page:

 trace add variable vbl write {apply {v1 v2 op} {
    upvar 1 $v1 v
    puts "updated variable to \"$v\""
 }}

As apply takes as its first argument a 2-argument list, isn't that example missing a pair of braces?

 trace add variable vbl write {apply {{v1 v2 op} {
    upvar 1 $v1 v
    puts "updated variable to \"$v\""
 }}}
msofer Ticket [1811791fff]: 2 changes [History diff]2007-10-12 02:42:13
dgp Ticket [1811791fff]: 1 change [History diff]2007-10-18 03:39:00
msofer Closed ticket [1811791fff]. [History diff]2007-10-27 20:52:27
Log in (anonymous is fine) to add a comment.