Skip to content
Tcl Source Code Check-in [271dbffaf7]
Login

Check-in [271dbffaf7]

Overview
Comment:Still to be TIP'ed. In this branch objTypes are not registered to Tcl any more, and still can do everything. It proves that Tcl_ConvertToType and the toAnyProc in thc Tcl_ObjType struct can be safely removed. Conversion to any specific type must be done by the "Tcl_GetXXXFromObj" type functions. One objType which didn't have such a function yet: "end-offset". This branch replaces this type by an "index" objType with its own Tcl_GetIntForIndex function (which functions the same as the currently private TclGetIntForIndex, only faster...). In addition, it affects Tcl_GetBoolean, which now follows the same same parsing rules as Tcl_GetBooleanFromObj.
Timelines: family | ancestors | descendants | both | no-register-objtypes
Files: files | file ages | folders
SHA1: 271dbffaf746c8d3fcfcc4bb851dece67f6684fd
User & Date: jan.nijtmans on 2013-02-11 15:53:09.993
Other Links: branch diff | manifest | tags
Context
2013-02-12
21:40
use longValue as internal repr in stead of wideValue. name new type "lindex" in stead of already ex... closed check-in: 36abbd5b57 user: jan.nijtmans tags: no-register-objtypes
2013-02-11
15:53
Still to be TIP'ed. In this branch objTypes are not registered to Tcl any more, and still can do ev... check-in: 271dbffaf7 user: jan.nijtmans tags: no-register-objtypes
10:25
more Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewLongObj conversions check-in: a80fb8c697 user: jan.nijtmans tags: novem
Changes