Skip to content
Tcl Source Code View Ticket
Login

View Ticket

inconsistent "procbody" objType

Closed / Wont Fix1174395fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 21 years ago
Descriptionplain2005-03-31 20:20:48
This objType should not be
registered, since it lacks
a setFromAnyProc .
dgpplain2005-04-01 03:23:01
Logged In: YES 
user_id=80530

Ditto for the "levelReference" type.

Check on the possibility of making
things file static as well.
dgpplain2005-04-01 03:28:26
Logged In: YES 
user_id=80530

DItto for the various "*VarName"
objTypes that panic in their
setFromAnyProc's.
dkfplain2005-04-01 15:01:59
Logged In: YES 
user_id=79902

Direct calling of the contents of the setFromAnyProc field
should not be supported anyway. Use Tcl_ConvertToType()
which guards against such things.

Also note that there are other potential uses of getting
access to an object type (e.g. the screen distance
management code in Tk wants to know whether it should call
Tcl_Get{Int,Double}FromObj or whether it should parse an
object itself and set it to its own type; forcing everything
to be handled as a screen distance type instance would cause
unacceptable levels of shimmering, but the setFromAnyProc is
not required in this use-case.) so registration despite the
NULL field is still potentially relevant.
dkfplain2005-04-01 15:03:41
Logged In: YES 
user_id=79902

However this is resolved, bear in mind 1174391 as well (same
issue in different maintenance area)
dkfplain2005-04-01 15:05:20
Logged In: YES 
user_id=79902

Also note that it ought to be possible to omit
setFromAnyProcs when the implementation of them just
Tcl_Panic()s. Setting the field to NULL instructs
Tcl_ConvertToType() to do the same thing.
dgpplain2006-03-10 22:33:51
Logged In: YES 
user_id=80530


The "procbody" registration
must be kept to support tclcompiler.
Log in (anonymous is fine) to add a comment.