Overview
| Artifact ID: | b3254ef85ca30a1bcae05f4daa768641d0163e87 |
|---|---|
| Ticket: | 1584674fffffffffffffffffffffffffffffffff
where has the syntax error detection gone |
| User & Date: | pcmacdon on 2006-10-27 06:12:32 |
Changes
- icomment:
Logged In: YES user_id=190660 Originator: YES I understand a little better now whats going on. Compilation is not being deferred but rather errors are being ignored. The main change seems to be in TclCompileScript() which no longer provides a return code. I looked at the two simple test cases in 8.5a5 and in both cases it is TclCompileScript() that is ignoring the compile errors. (Case 1): # set a [badcall c Line 1006: if (Tcl_ParseCommand(interp, p, bytesLeft, 0, &parse) != TCL_OK) Just compiles a returnCmd which the invocation chain ignores. This is a syntax error which I think should be reported. (Case 2): # set a b c Line 1183: code = (cmdPtr->compileProc)(interp, &parse, envPtr); ... /* Restore numCommands and codeNext to their ... */ Not sure what's the goal here. If you just wanted to redefine 'if' you can do that in 8.4 so long as 'proc if' is defined before this code is compiled. Oh, and Donal I think your code example is invalid. Did you mean: if bar var Also, static code checkers aren't really an option. On the second module I tried them on, frink core dumped and nagelfar generated an error for every 10th line of code. - login: "pcmacdon"
- mimetype: "text/plain"
- username: "pcmacdon"