|
From: Joe E. <jen...@fl...> - 2008-11-23 14:53:36
|
Jan Nijtmans wrote:
> This is a Call For Votes on TIP #340.
>
> TIP #340: CONST Qualification of Tcl_SetResult's argument and -Wwrite-string
TIP#340: NO.
I support the goals of this TIP, but not the specific
proposed refactoring. It leaves Tcl_SetResult() in a
broken state: with an incorrect const qualifier on the
second argument and a worthless vestigial third argument.
What is called for is a new, two-argument, const-correct
entry point:
void Tcl_SetResultString(Tcl_Interp *, const char *);
and for Tcl_SetResult() to be deprecated in its entirety.
(Or not. Keeping it around is cheap.)
--Joe English
jen...@fl...
|