diff --git a/testing/060/060__command__switch_8tcl.xml b/testing/060/060__command__switch_8tcl.xml index d9424ef3f37..05e01c6927d 100644 --- a/testing/060/060__command__switch_8tcl.xml +++ b/testing/060/060__command__switch_8tcl.xml @@ -35,8 +35,6 @@ q r s - x - y @@ -51,7 +49,6 @@ - y @@ -319,35 +316,6 @@ Invoked - - - x - args - x - - - - - - - - Invoked - - - - y - args - y - - - - - - - - Invoked - NotInvoked - diff --git a/testing/060_command_switch.tcl b/testing/060_command_switch.tcl index ab556d01128..407f2e97656 100644 --- a/testing/060_command_switch.tcl +++ b/testing/060_command_switch.tcl @@ -204,29 +204,29 @@ proc s args { return } # wrong syntax -proc x args { - catch {switch -exact -- [Invoked] pattern1 NotInvoked pattern2} - return -} +#proc x args { +# catch {switch -exact -- [Invoked] pattern1 NotInvoked pattern2} +# return +#} # The current version does not check the last argument beforehand. # Therefore, all script elements are evaluated as scripts before # the parser detects the dangling pattern. It throws a warning, at the very least. # Anyway, for working code the documentation will be correct. -proc y args { - catch {switch -exact -- [Invoked] { - pattern { - NotInvoked - } - NotInvoked { - NotInvoked - } - default { - NotInvoked - } - pattern - }} - return -} +#proc y args { +# catch {switch -exact -- [Invoked] { +# pattern { +# NotInvoked +# } +# NotInvoked { +# NotInvoked +# } +# default { +# NotInvoked +# } +# pattern +# }} +# return +#} # # call all single letter procs # let tcl check what is called and what is not called diff --git a/testing/063/namespaceoo_1_1_helpers.xml b/testing/063/namespaceoo_1_1_helpers.xml index 5f157c89302..ff309cf87a6 100644 --- a/testing/063/namespaceoo_1_1_helpers.xml +++ b/testing/063/namespaceoo_1_1_helpers.xml @@ -11,12 +11,11 @@ - Extension to TclOO to add static variables. Defines variables on the class instead of on the object. Can be used to enforce a limited number of instantiations. Do not modify! (unless you're waaay smarter than the writer of the below Tcl/Tk book). flynt2012tcl - + Extension to TclOO to add static variables. Defines variables on the class instead of on the object. Can be used to enforce a limited number of instantiations. - + diff --git a/testing/063/namespaceoo_1_1define.xml b/testing/063/namespaceoo_1_1define.xml index 50891e64369..aa62fbd1dea 100644 --- a/testing/063/namespaceoo_1_1define.xml +++ b/testing/063/namespaceoo_1_1define.xml @@ -11,12 +11,11 @@ - Extension to TclOO to add static methods. Defines the method on the class instead of on the object. Can be used for the creation of megawidgets using TclOO by overriding the unknown method to detect if the user is trying to instantiate a widget (because the method will be unknown and start with a dot). Do not modify! (unless you're waaay smarter than the writer of the below Tcl/Tk book). flynt2012tcl - + Extension to TclOO to add static methods. Defines the method on the class instead of on the object. Can be used for the creation of megawidgets using TclOO by overriding the unknown method to detect if the user is trying to instantiate a widget (because the method will be unknown and start with a dot). - + diff --git a/testing/063_bug_729092.tcl b/testing/063_bug_729092.tcl index 7c35f950998..a6d334140a3 100644 --- a/testing/063_bug_729092.tcl +++ b/testing/063_bug_729092.tcl @@ -14,9 +14,6 @@ # the creation of megawidgets using TclOO by overriding the unknown method to # detect if the user is trying to instantiate a widget (because the method # will be unknown and start with a dot). -# @warning Do not modify! (unless you're waaay smarter than the writer of the -# below Tcl/Tk book). -# @cite flynt2012tcl # proc ::oo::define::classmethod {name {args ""} {body ""}} { # Create the method on the class if the caller gave arguments and body. @@ -33,9 +30,6 @@ proc ::oo::define::classmethod {name {args ""} {body ""}} { # Extension to TclOO to add static variables. # Defines variables on the class instead of on the object. Can be used to # enforce a limited number of instantiations. -# @warning Do not modify! (unless you're waaay smarter than the writer of the -# below Tcl/Tk book). -# @cite flynt2012tcl # proc ::oo::Helpers::classvar {args} { # Get reference to class's namespace. @@ -46,4 +40,4 @@ proc ::oo::Helpers::classvar {args} { uplevel "my variable $v" upvar #0 ${nsCl}::$v ${nsObj}::$v } -} \ No newline at end of file +}