Skip to content
Tcl Source Code History Of Ticket 2500398
Login

History Of Ticket 2500398

Artifacts Associated With Ticket 2500398

  1. Ticket change [db24ab58fa] (rid 107908) by coldstore on 2009-01-12 02:26:05:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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)
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "coldstore"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "unexpected [variable] behaviour"
    12. type initialized to: "RFE"
  2. Ticket change [dd3167224e] (rid 114622) by dkf on 2009-01-12 17:42:29:

    1. foundin changed to: "obsolete: 8.6b1"
    2. 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.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  3. Ticket change [003126e67c] (rid 119270) by dkf on 2009-01-12 17:42:30:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [cd53160c38] (rid 95872) by coldstore on 2009-01-12 17:45:53:

    1. 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.
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  5. Ticket change [cbf2dfac1e] (rid 95604) by beric on 2009-03-14 01:24:45:

    1. 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.
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  6. Ticket change [abd0a703e7] (rid 101183) by dkf on 2009-03-24 23:19:46:

    1. icomment:
      “Do”? It's working as specified and as documented.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [e57ecaea6e] (rid 104132) by dkf on 2009-05-11 20:56:40:

    1. foundin changed to: "None"
    2. 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.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "35. TclOO Package"
    6. username: "dkf"
  8. Ticket change [8cf945773e] (rid 127836) by dkf on 2009-05-11 20:57:36:

    1. title changed to: "add variables with 'variable' decl"
  9. Ticket change [4a6e912c12] (rid 126536) by dkf on 2009-05-11 20:58:35:

    1. priority changed to: "8"
  10. Ticket change [dde7816a62] (rid 114761) by dkf on 2009-07-12 22:01:25:

    1. title changed to: "Slot management system for TclOO"
  11. Ticket change [3363166646] (rid 106589) by dkf on 2009-07-12 22:02:18:

    1. icomment:
      Note that this sort of thing ought to be applied to the other list-of-things declarations too. Broadening FRQ scope.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  12. Ticket change [5673f29c4e] (rid 94318) by dkf on 2012-05-17 17:52:24:

    1. closedate changed to: "2012-05-17T10:52:24"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      This was TIP #380, and is applied.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"