<br><font size=2 face="sans-serif">When creating XOTcl objects from C,
it would be nice to be able to initialize the new object's clientData prior
to any methods being invoked on the object.</font>
<br>
<br><font size=2 face="sans-serif">Right now, the only way I can think
of to do this is to </font>
<br><font size=2 face="sans-serif">1. create the object (which invokes
"init", which can't rely on the ClientData)</font>
<br><font size=2 face="sans-serif">2. XOTclSetObjectClientData( XOTclGetObject(),
data); // Or the Class equivalent</font>
<br><font size=2 face="sans-serif">3. Invoke some secondary, private "init"-like
method that does true initialization</font>
<br>
<br><font size=2 face="sans-serif">It would be nice to have two new exported
functions:</font>
<br>
<br><font size=2 face="sans-serif">int XOTclCreateObjectCl (Tcl_Interp*
in, Tcl_Obj* name, ClientData data, struct XOTcl_Class* cl);</font>
<br><font size=2 face="sans-serif">int XOTclCreateClassCl (Tcl_Interp*
in, Tcl_Obj* name, ClientData data, struct XOTcl_Class* cl);</font>
<br>
<br><font size=2 face="sans-serif">That initialize the XOTcl ClientData
field prior to invoking "init" so that "init" could
rely on the XOTcl ClientData being valid. This would make it much
easier to construct XOTcl wrappers around C/C++ objects. </font>
<br>
<br><font size=2 face="sans-serif">Is this reasonable? Is there a better
way to accomplish this? </font>
<br>
<br><font size=2 face="sans-serif"> Scott</font>
<br>
<br>
<hr><font size=3 face="Arial"><b>Notice</b> </font>
<br><font size=1 color=#202020 face="Times New Roman">The information in
this message is confidential and may be legally privileged. It is
intended solely for the addressee. Access to this message by anyone
else is unauthorized. If you are not the intended recipient, any
disclosure, copying or distribution of the message, or any
action taken by you in reliance on it, is prohibited and may be unlawful.
If you have received this message in error, please delete it
and contact the sender immediately. Thank you.</font><font size=2 face="sans-serif"><br>
</font>