#3359 Incorrect example code in dict man page

obsolete: 8.5a3
closed-fixed
5
2006-01-26
2006-01-26
Anonymous
No

In the most recent man page for the new "dict" command
(http://www.tcl.tk/man/tcl8.5/TclCmd/dict.htm), section
EXAMPLES, I read:

foreach c {abcdefghijklmnopqrstuvwxyz} {
dict set capital C $c [string toupper $c]
}

Shouldn't that be either of:

foreach c {a b c d e f g h i j k l m n o p q r s t u v
w x y z} {
...
}

foreach c [split {abcdefghijklmnopqrstuvwxyz}] {
...
}

My email: heiner.marxen@insel.de (Heiner Marxen)

Discussion

  • Donal K. Fellows

    • status: open --> closed-fixed
     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    Thanks for catching this

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks