Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6c5a8e944dcda606eb315c9d382597ac7c5b50504f06abcfa6602f2798015e38
Ticket: b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
The "int" type registration should be restored.
User & Date: anonymous on 2022-11-18 07:29:45
Changes

  1. icomment:
    > That does not mean they all break with this change
    
    Speaking for xotcl/nsf (the old xotcl extension is dead, it was just for Tcl 8.6; 
    XOTcl 2 is part of nsf (same binary). It uses the following simple idiom 
    to obtain the type record of "int".  
    
    +  tmpObj = Tcl_NewIntObj(0);
    +  Nsf_OT_intType = tmpObj->typePtr;
    +  Tcl_DecrRefCount(tmpObj);
    +  assert(Nsf_OT_intType != NULL);
    
    Probably, Brian was referring to such a construct above... 
    The "int" registry was removed somewhere in the 8.7a* versions. 
    This is not something, I would go on the street for. 
    I never cared to understand why some types are registered, others not.
    
    OTOH: The type registry is important, and should not go away. 
    It is used e.g. by nsf to use type converters (e.g. memory and time units) 
    of NaviServer when used inside NaviServer. This makes usage more seamless.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"