|
From: David G. <dav...@po...> - 2004-02-05 20:03:29
|
ke...@cr... (Kevin Kenny) wrote: >dav...@po... said: >> Make unchecked default, with an option for checked? Therefore, >> ::tcl_platform(debug) shall mean 'has symbols'? > >Hmmm. The only reason my code ever has occasion to look at >::tcl_platform(debug) is so that I can get the right DLL (checked >versus unchecked) when loading a package. Ok, now I'm seeing clarity in this. This is how it works as is. ::tcl_platform(debug) is only set when _DEBUG is defined which is what -MDd or -MTd will do. So that lines up. The meaning of ::tcl_platform(debug) is 'uses a checked c-runtime'. > Why would Tcl code care >whether the libraries have symbols enabled? This is a new concept for me. tclvars.n could use an edit: debug If this variable exists, then the interpreter was compiled with debugging symbols enabled. This variable will only exist on Windows so extension writers can specify which package to load depending on the C run-time library that is loaded. 'compiled with debugging symbols enabled' should probably get replaced with 'compiled with and linked to a debug enabled C run-time'. -- David Gravereaux <dav...@po...> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] |