Skip to content
Tcl Source Code History Of Ticket 7a0f53f43c39a69d
Login

History Of Ticket 7a0f53f43c39a69d

Artifacts Associated With Ticket 7a0f53f43c39a69d

  1. Ticket change [506c5fda8b] (rid 223173) by AlanGrunwald on 2024-03-14 10:33:15:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      Consider:
      
          % info patchlevel
          8.6.13
          % oo::class create foo {constructor {} {}}
          ::foo
          % set f [foo new a b c]
          ::oo::Obj12
      
      It seems that if the constructor has **any** definition, then the arguments are checked properly
      
          % oo::class create foo {constructor {} { }}
          ::foo
          % set f [foo new a b c]
          wrong # args: should be "foo new"
      
    5. foundin initialized to: "8.6.13"
    6. is_private initialized to: "0"
    7. login: "AlanGrunwald"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "66fa165f4d6461fc4cd65db7288486f7bd6fbf83"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "AlanGrunwald"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to:
      Arguments of empty constructor not checked properly
      
    16. type initialized to: "Bug"
  2. Ticket change [465b9f3256] (rid 226203) by dkf on 2024-05-20 12:53:41:

    1. assignee changed to: "dkf"
    2. icomment:
      Confirmed, in 8.6 and (just off) the `main` branch tip.
      
    3. login: "dkf"
    4. mimetype: "text/x-markdown"
    5. severity changed to: "Important"
  3. Ticket change [ab34d103fc] (rid 226204) by dkf on 2024-05-20 12:59:26:

    1. closedate changed to: "2460451.04127583"
    2. closer changed to: "dkf"
    3. icomment:
      Ah, no! It's [documented](https://www.tcl-lang.org/man/tcl8.6/TclCmd/define.htm#M6) as something that is that way by design.
      
      > If _bodyScript_ is the empty string, the constructor will be deleted.
      
      Destructors behave the same way.
      
    4. login: "dkf"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"