#3609 Wrong example in man package

obsolete: 8.4.14
closed-out-of-date
5
2007-01-29
2006-12-28
suchenwi
No

At the end of the package man page, the code example has the logic reversed:
if {[catch {package require Snack}]} {
# We have the package, configure the app to use it
} else {
# Set up a dummy interface to work around the absence
}

I suggest to put a "!" in front of [catch :)

Discussion

  • Donal K. Fellows

    Logged In: YES
    user_id=79902
    Originator: NO

    Only fault in 8.4 branch.

     
  • Donal K. Fellows

    • milestone: --> obsolete: 8.4.14
     
  • Don Porter

    Don Porter - 2007-01-29
    • status: open --> closed-out-of-date
     
  • Don Porter

    Don Porter - 2007-01-29

    Logged In: YES
    user_id=80530
    Originator: NO

    This was fixed for 8.4.14
    back in September.