|
2008-01-17
| ||
| 23:13 | • Closed ticket [1855644fff]: TclCompile uses C++ reserved keyword "operator&... artifact: 0f4c13a8f2 user: msofer | |
|
2008-01-15
| ||
| 13:13 | • Ticket [1855644fff]: 5 changes artifact: 5a5bfcccae user: dgp | |
|
2008-01-11
| ||
| 20:46 | • Ticket [1855644fff]: 5 changes artifact: 0b9de43e4f user: msofer | |
| 20:46 | • Add attachment operator.diff to ticket [1855644fff] artifact: 5b6f29a6bb user: msofer | |
|
2008-01-04
| ||
| 11:22 | • Ticket [1855644fff] TclCompile uses C++ reserved keyword "operator"</i... artifact: 873ebb049b user: msofer | |
|
2007-12-22
| ||
| 04:56 | • Ticket [1855644fff]: 4 changes artifact: 6f48e78ac5 user: msofer | |
| 04:22 | • Ticket [1855644fff]: 5 changes artifact: 38c756aff8 user: dkf | |
|
2007-12-21
| ||
| 10:33 | • New ticket [1855644fff]. artifact: 8a16fdb4b9 user: fanfdesalpes | |
TclCompile uses C++ reserved keyword "operator"
Closed / Fixed1855644fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-21 10:33:41
TclCompile uses C++ reserved keyword "operator" in the "TclOpCmdClientData" structure. When compiling with C++, one has to #define operator _operator before #include "tclCompile.h" which is ugly. I know I shouldn't include private headers such as this one, but using C++ reserved keywords should be avoided anyway, I think.
dkfplain2007-12-22 04:22:53
Logged In: YES
user_id=79902
Originator: NO
We use other C++ reserved words all over too ("new" is a favourite). If it's not in a header file, I'm not going to get in the slightest bit excited. (The header files should be loadable even when compiling C++, of course.)
msoferplain2007-12-22 04:56:46
Logged In: YES user_id=148712 Originator: NO It *is* in a header file: tclCompile.h, line 820
msofer Ticket [1855644fff]: 1 change
[History diff]2008-01-04 11:22:55
msoferplain2008-01-11 20:46:21
File Added - 261795: operator.diff Logged In: YES user_id=148712 Originator: NO Attached patch that replaxes 'operator' with 'op'. OK? File Added: operator.diff
dgpplain2008-01-15 13:13:08
Logged In: YES user_id=80530 Originator: NO The tclUnixThrd.c change is in the patch by mistake? Other than that, this seems fine, though catering to C++ needs is mildly distasteful; especially in a header file that no other code is supposed to #include.
msofer Closed ticket [1855644fff].
[History diff]2008-01-17 23:13:53
Log in (anonymous is fine) to add a comment.
Attachments:
- operator.diff [download] added by msofer on 2008-01-11 20:46:18. [details]