Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ed774581b66b83fcb19b2642f8bba879140a333e4f53e09ace7d0b8edcdae8f7
Ticket: 68050339b564d3c155cb9d9b324262ed7b3b65f3
classmethod fails if no argument supplied to class create
User & Date: dgp on 2024-09-16 19:08:29
Changes

  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"