Artifacts Associated With Ticket 680503
Ticket change [72027599e2] (rid 231222) by apnadkarni on 2024-08-26 12:07:16:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- 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 :-) - foundin initialized to: "9.0b3"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "35. TclOO Package"
- title initialized to:
classmethod fails if no argument supplied to class create
- type initialized to: "Bug"
Ticket change [a262ac6b64] (rid 231223) by apnadkarni on 2024-08-26 12:07:33:
- assignee changed to: "dkf"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [972432032c] (rid 233480) by dkf on 2024-09-16 14:26:21:
- icomment: "Very odd. That *should* work..."
- login: "dkf"
- mimetype: "text/x-markdown"
Ticket change [9f7c072dd3] (rid 233485) by dkf on 2024-09-16 14:41:11:
- closedate changed to: "2460570.11193769"
- closer changed to: "dkf"
- 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.
- login: "dkf"
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [1f253329f9] (rid 233486) by oehhar on 2024-09-16 14:44:06:
- closedate changed to: "2460570.11396543"
- closer changed to: "oehhar"
- icomment: "Great fix! The commit is [b378bba6ce]."
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
Ticket change [ed774581b6] (rid 233507) by dgp on 2024-09-16 19:08:29:
- closedate changed to: "2460570.29756156"
- closer changed to: "dgp"
- 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 - login: "dgp"
- mimetype: "text/plain"