Skip to content
Tcl Source Code History Of Ticket 680503
Login

History Of Ticket 680503

Artifacts Associated With Ticket 680503

  1. Ticket change [72027599e2] (rid 231222) by apnadkarni on 2024-08-26 12:07:16:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      ```
      % oo::class create C
      ::C
      % oo::define C {method m {} {}}
      % oo::define C {classmethod cm {} {}}
      ::oo::Obj23:: oo ::delegate does not refer to an object
      ```
      
      Note `method` works, but not `classmethod`. On the other hand, if the `create` is passed a body (even empty), it all works.
      
      ```
      % oo::class create D {}
      ::D
      % oo::define D {method m {} {}}
      % oo::define D {classmethod cm {} {}}
      ```
      
      Very minor but spent a half hour not understanding why my code was suddenly failing after adding a classmethod :-)
      
    5. foundin initialized to: "9.0b3"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to:
      classmethod fails if no argument supplied to class create
      
    16. type initialized to: "Bug"
  2. Ticket change [a262ac6b64] (rid 231223) by apnadkarni on 2024-08-26 12:07:33:

    1. assignee changed to: "dkf"
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  3. Ticket change [972432032c] (rid 233480) by dkf on 2024-09-16 14:26:21:

    1. icomment: "Very odd. That *should* work..."
    2. login: "dkf"
    3. mimetype: "text/x-markdown"
  4. Ticket change [9f7c072dd3] (rid 233485) by dkf on 2024-09-16 14:41:11:

    1. closedate changed to: "2460570.11193769"
    2. closer changed to: "dkf"
    3. icomment:
      Oh, that was silly. Was checking the number of arguments to the class constructor too early. Moved the check after the creation of the delegate.
      
    4. login: "dkf"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  5. Ticket change [1f253329f9] (rid 233486) by oehhar on 2024-09-16 14:44:06:

    1. closedate changed to: "2460570.11396543"
    2. closer changed to: "oehhar"
    3. icomment: "Great fix! The commit is [b378bba6ce]."
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. username: "oehhar"
  6. Ticket change [ed774581b6] (rid 233507) by dgp on 2024-09-16 19:08:29:

    1. closedate changed to: "2460570.29756156"
    2. closer changed to: "dgp"
    3. icomment:
      
      This bug fix applied to Tcl trunk creates three test failures
      in Itcl 4.3.0
      
      typeclass.test
      
      
      ==== rename-1.3 rename to "" deletes an instance FAILED
      ==== Contents of test case:
      
          type dog { }
      
          dog fido
          rename fido ""
          namespace children ::dog
      
      ---- Result was:
      {::dog:: oo }
      ---- Result should have been (exact matching):
      
      ==== rename-1.3 FAILED
      
      
      
      ==== rename-1.4 rename to "" deletes an instance even after a rename FAILED
      ==== Contents of test case:
      
          type dog { }
      
          dog fido
          rename fido spot
          rename spot ""
          namespace children ::dog
      
      ---- Result was:
      {::dog:: oo }
      ---- Result should have been (exact matching):
      
      ==== rename-1.4 FAILED
      
      
      
      ==== destroy-1.1 destroy cleans up the instance FAILED
      ==== Contents of test case:
      
          type dog {
              option -color golden
          }
      
          set a [namespace children ::dog::]
          dog create spot
          set ns [info object namespace spot]
          set b [namespace children ::itcl::internal::variables$ns]
          spot destroy
          set c [namespace which ::itcl::internal::variables$ns]
          list $a $b $c [info commands ::dog::spot]
      
      ---- Result was:
      {{::dog:: oo }} ::itcl::internal::variables::oo::Obj123::dog {} {}
      ---- Result should have been (glob matching):
      {} ::itcl::internal::variables::*::dog {} {}
      ==== destroy-1.1 FAILED
      
    4. login: "dgp"
    5. mimetype: "text/plain"