On 22.08.2006, at 14:44, Bernd Eidenschink wrote:
As it is possible to list all options of all sections (from C and
TCL), at the
end I can detect config options that I did not request and set during
startup.
Therefor I can lookup if the options belong to other sections or if
the
options are unknown in a section or totally unknown.
If something can be done in couple of Tcl lines and
if this is not something you'd do 1000.000 times a day
in a tight loop I'd leave it on the Tcl level.
Mingling with C-code is about 10-times the work you'd
invest for Tcl and it has a side-effect of gross
destabilization as every single/small error is fatal.
Therefore, I could/would do this in C only if it is really
issue of speed (you need light-fast code) or data-fiddling
(can be done with Tcl but is dead-inneficient and unelegant)
or lack of Tcl interface.
If you say you can collect all sections and all params with
Tcl and do your cross-checking, why bother?
Cheers
Zoran