Artifacts Associated With Ticket 2500398
Ticket change [db24ab58fa] (rid 107908) by coldstore on 2009-01-12 02:26:05:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It seems that [variable] within class declaration doesn't 'accumulate' variable names, so there can only be a single [variable] in the declaration. I would expect the following to produce "moop v3 1" instead of erroring. package require TclOO namespace import oo::* class create Vartest { variable v3 variable v1 v2 method moop {v} { puts stderr "moop $v [set $v]" } method woo {} { my moop v1 my moop v2 my moop v3 } constructor {} { set v1 1 set v2 1 set v3 1 } } Vartest create test test woo PRODUCES: tclsh8.6 tcloo.tcl moop v1 1 moop v2 1 can't read "v3": no such variable while executing "set $v" (class "::Vartest" method "moop" line 2) invoked from within "my moop v3" (class "::Vartest" method "woo" line 4) invoked from within "test woo" (file "tcloo.tcl" line 24) - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "coldstore"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "unexpected [variable] behaviour"
- type initialized to: "RFE"
Ticket change [dd3167224e] (rid 114622) by dkf on 2009-01-12 17:42:29:
- foundin changed to: "obsolete: 8.6b1"
- icomment:
Right now, the 'variable' declaration 'sets' rather than 'appends'. In this, it is like the 'superclasses', 'mixins' and 'filters' decls. Arguably this should be different; I'm in two minds about it.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [003126e67c] (rid 119270) by dkf on 2009-01-12 17:42:30:
- icomment:
Right now, the 'variable' declaration 'sets' rather than 'appends'. In this, it is like the 'superclasses', 'mixins' and 'filters' decls. Arguably this should be different; I'm in two minds about it.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [cd53160c38] (rid 95872) by coldstore on 2009-01-12 17:45:53:
- icomment:
I don't mind which way it works, although I tend to like to have a variable declaration with associated comments. I'd expected it to be like [method] rather than [superclass], but can live with however it falls. Possibly this needs to be more clearly documented.
- login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"
- icomment:
Ticket change [cbf2dfac1e] (rid 95604) by beric on 2009-03-14 01:24:45:
- icomment:
Hello Donal, Just to remind you... What do you intend to do for this? Personnaly, I would prefer the 'append' behaviour. The 'set' behaviour is not usual in Tcl.
- login: "beric"
- mimetype: "text/plain"
- username: "beric"
- icomment:
Ticket change [abd0a703e7] (rid 101183) by dkf on 2009-03-24 23:19:46:
- icomment:
“Do”? It's working as specified and as documented.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [e57ecaea6e] (rid 104132) by dkf on 2009-05-11 20:56:40:
- foundin changed to: "None"
- icomment:
data_type - 360894 As this is really a FRQ for a slot-like management scheme for variables, I'm moving this to another tracker.
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "35. TclOO Package"
- username: "dkf"
Ticket change [8cf945773e] (rid 127836) by dkf on 2009-05-11 20:57:36:
- title changed to: "add variables with 'variable' decl"
Ticket change [4a6e912c12] (rid 126536) by dkf on 2009-05-11 20:58:35:
- priority changed to: "8"
Ticket change [dde7816a62] (rid 114761) by dkf on 2009-07-12 22:01:25:
- title changed to: "Slot management system for TclOO"
Ticket change [3363166646] (rid 106589) by dkf on 2009-07-12 22:02:18:
- icomment:
Note that this sort of thing ought to be applied to the other list-of-things declarations too. Broadening FRQ scope.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [5673f29c4e] (rid 94318) by dkf on 2012-05-17 17:52:24:
- closedate changed to: "2012-05-17T10:52:24"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 This was TIP #380, and is applied.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"