From: <no...@so...> - 2001-09-05 22:41:17
|
Bugs item #217904, was opened at 2000-10-25 17:45 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=217904&group_id=10894 Category: 43. Parsing and Eval Group: : 8.0.5 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Kevin B KENNY (kennykb) >Summary: Please use 'const char*' in Tcl_CreateCommand Initial Comment: OriginalBugID: 2580 RFE Version: 8.0.5 SubmitDate: '1999-08-18' LastModified: '2000-05-17' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 1162 OS: Solaris OSVersion: Solaris 2.7 ( Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-05-17' Name: Charles P. Peterson Comments: I looked at your latest beta, and you still haven't done this. DesiredBehavior: String constant "const"-ness is now required by ANSI/ISO C++ and compilers such as Sun's latest SUNPRO C++ 5.0 are starting to enforce this rule. Please declare all unmodified string arguments as "const char*" (which is valid in both C++ and ANSI C). As it currently stands, I have to cheat with casts to work around this when calling (for example) Tcl_CreateCommand from C++. (Note: when you start doing this be prepared to do it all at once or suffer from "const poisoning.") ---------------------------------------------------------------------- >Comment By: Jeffrey Hobbs (hobbs) Date: 2001-09-05 15:40 Message: Logged In: YES user_id=72656 The 8.4 Tcl_CreateCommand has the cmdName CONST'ed, along with the general constification of 8.4. ---------------------------------------------------------------------- Comment By: Kevin B KENNY (kennykb) Date: 2001-04-05 08:09 Message: Logged In: YES user_id=99768 This bug is requesting the CONST specifically in Tcl_CreateCommand; this API still hasn't been updated in the current HEAD. I'm reopening it so we don't forget to fix it. ---------------------------------------------------------------------- Comment By: Kevin B KENNY (kennykb) Date: 2001-02-14 09:24 Message: This bug substantially duplicates bug ID# 119151, which I'd enter in the 'dependent' field if SF would let me. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=217904&group_id=10894 |