49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
+
-
+
-
+
|
routine it may supply. Also with no <b>Tcl_ConvertToType</b>
to call, there is no need for any caller to access an arbitrary
Tcl_ObjType, so there's no need for <b>Tcl_GetObjType</b>.
And if no <b>Tcl_GetObjType</b> will be pulling types out
of registration, then no <b>Tcl_RegisterObjType</b> needs
to put them in there, nor do we need any mechanism to list
the types available. The end result is a system with far
greater decoupling, where every <b>Tcl_ObjType</b> struct
greater decoupling, which is helpful for independent,
can have file static scope, which is helpful for independent,
non-coordinated development of interoperating modules.
Besides the advantages of a more decoupled system, there
are other problems with object type registration in that it has
never been well defined how to properly resolve any collisions
the the object type names by which registration happens.
in the object type names by which registration happens.
Neither option of either raising errors on collision, nor using
collisions as a means to replace and retrofit has been embraced.
All that has been done is to avoid collisions as much as possible.
Over time, several of the object types built into Tcl have
pulled back from registration as they could.
|