From: Donal K. F. <don...@ma...> - 2003-12-16 09:41:49
|
Donald G Porter wrote: >>Can I put Tcl_Main into the public Stubs table? >> >> >No. > > Providing further explanation: AIUI Tcl_Main() does a lot of extra initialisation that should not be repeated, and in order to get a usable stubs table you'd need to do much of that for yourself. Perhaps there is a need for splitting Tcl_Main() into multiple bits, with later bits in the stubs table. However, Tcl_Main() itself isn't a suitable candidate for that treatment, since it is only intended for use in apps that link to the Tcl library itself (not the stubs lib) when they are doing something nasty that prevents them from just loading there fancy bits as extensions into a normal tclsh. Donal. |