Diff

Login

Differences From Artifact [6e0ba0ee98]:

To Artifact [34809f1432]:


1
2
3

4
5
6
7

8
9
10
11
12
13
14
1
2

3
4
5
6

7
8
9
10
11
12
13
14


-
+



-
+







TIP:		323
Title:		Do Nothing Gracefully
Version:	$Revision: 1.5 $
Version:	$Revision: 1.6 $
Author:		Colin McCormack <[email protected]>
Author:		Don Porter <[email protected]>
Author:		Kevin B. Kenny <[email protected]>
State:		Accepted
State:		Final
Type:		Project
Vote:		Done
Created:	06-Aug-2008
Post-History:
Tcl-Version:	8.6

~ Abstract
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84


85
86
87
88
89
90
91
92
93
94
95
58
59
60
61
62
63
64









65
66
67
68
69
70
71
72
73


74
75




76
77
78
79
80
81
82







-
-
-
-
-
-
-
-
-









-
-
+
+
-
-
-
-







 1. '''lrepeat''' - accept both ''number'' = 0 and zero elements.
    [https://sourceforge.net/support/tracker.php?aid=1671951]

 1. '''my variable''' - accept zero variable names.

 1. '''namespace upvar''' - accept zero variable names.

 1. '''string first''' - able to find empty string.
    [https://sourceforge.net/support/tracker.php?aid=1243354]
 
 1. '''string last''' - able to find empty string.
    [https://sourceforge.net/support/tracker.php?aid=1243354]
 
 1. '''string replace''' - change interpretation of ''last'' < ''first'' case
    to enable replacement of an empty substring anchored at ''first''.

 1. '''tcl::tm::path add''' - accept zero paths.

 1. '''tcl::tm::path remove''' - accept zero paths.

 1. '''variable''' - accept zero variable names.
    [https://sourceforge.net/support/tracker.php?aid=1881284]

~ Compatibilty

Most of the proposed changes convert errors into no-ops.  There should be no
compatibility concerns with those. The exceptions are the proposed changes to
The proposed changes convert errors into no-ops.  There should be no
compatibility concerns with those. 
'''string first''', '''string last''', and '''string replace''', where current
behavior is so inexplicable, it would be called a bug if it weren't
documented. Changing those commands is an incompatibility, but likely a
welcome one.

~ Implementation

When an implementation patch is completed, it will be logged in the SF Tracker
and noted here.

~ Exclusions
125
126
127
128
129
130
131








132
133
134
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129







+
+
+
+
+
+
+
+



    acceptance over a complete input domain. Not in the spirit of this TIP.

 1. '''uplevel'''

 1. '''upvar''' - presence of the optional ''level'' argument makes this
    one messy.

~ Epilogue

Proposed changes to '''string first''', '''string last''', and
'''string replace''' in earlier revisions of the TIP that were approved
by the vote have been rescinded after testing during the implementation
phase revealed greater than expected issues with the incompatibilities
those changes introduced.

~ Copyright

This document has been placed in the public domain.