|
2000-10-26
| ||
| 07:49 | • Closed ticket [217786ffff]: Patch to support empty array names. plus 4 other... artifact: d8430132b5 user: welch | |
| 00:43 | • New ticket [217786ffff]. artifact: 76d4f46302 user: nobody | |
Patch to support empty array names.
Closed / Duplicate217786ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:43:39
OriginalBugID: 822 Bug
Version: 8.0.3
SubmitDate: '1998-11-12'
LastModified: '1999-08-06'
Severity: MED
Status: Closed
Submitter: welch
ChangedBy: hobbs
RelatedBugIDs: 915
OS: All
OSVersion: NA
Machine: NA
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '1999-08-06'
These patches for tcl8.0p2 an tcl8.1a make the following code
possible:
set ($this,m) x
puts $(this,m) ;# instead of $className::($this,m)
thus making the new stooop 3.x much less verbose when accessing class
data members, and much faster too!
Since this new feature does not break anything in the Tcl core, I
think this would be a worthwhile feature to integrate into the core
(maybe in 8.1 as it is too late for 8.0).
IF YOU ARE USING STOOOP, I ENCOURAGE YOU TO WRITE TO JOHN OUSTERHOUT
ABOUT THIS. The more requests he gets, the more chance there is that
this will make it into the core. And furthermore, John is a very nice
guy and always responds to emails.
Moreover, it would add some consistency to the core:
namespace a {
variable {}
}
set a::(x) 0
puts $a::(x) ;# works with current tcl version
namespace a {
set (x) 0
puts $(x) ;# should work as line above
}
The patch is on the web database under tcl8.0.3,
but there is also a patch for Tcl 8.1
welch Closed ticket [217786ffff].
[History diff]2000-10-26 07:49:17
Log in (anonymous is fine) to add a comment.