Artifacts Associated With Ticket 924045ffff
Ticket change [332317004f] (rid 106533) by msofer on 2004-03-26 17:04:33:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
TclWordKnownAtCompileTime() is currently only used in compiling [return]; it should be valuable elsewhere in the compiler, wherever tests like if (tokenPtr->type == TCL_TOKEN_SIMPLE_WORD) are made. It will allow compilation of scripts with a fair amount of \uHHHH encodings in them, plus backslash-newline in long literal strings.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "wider use of TclWordKnownAtCompileTime()"
- type initialized to: "RFE"
Ticket change [fd167dc56d] (rid 108351) by msofer on 2004-03-27 00:06:32:
- assignee changed to: "nobody"
- icomment:
Logged In: YES user_id=148712 oops -this is an RFE, not a patch
- login: "msofer"
- mimetype: "text/plain"
- subsystem changed to: "None"
- username: "msofer"
Ticket change [e3cf2f6d0f] (rid 87862) by msofer on 2004-03-27 00:09:56:
- assignee changed to: "msofer"
- subsystem changed to: "47. Bytecode Compiler"
Ticket change [447efa2000] (rid 116721) by msofer on 2006-09-30 00:51:54:
- priority changed to: "8"
Ticket change [50004e045d] (rid 125906) by andreas_kupries on 2006-09-30 01:01:27:
- icomment:
Logged In: YES user_id=75003 Oh, I have a TclLiteral function in the patch I wrote for #86/#211. Miguel, I will send you the patch, and maybe I can use TclWordKnownAtCompileTime as well. Notethat my patch is against 8.4, not head.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [c1e465c8cf] (rid 111402) by andreas_kupries on 2006-10-06 01:24:01:
- icomment:
Logged In: YES user_id=75003 I have now compared the two functions, i.e. "TclIsLiteral" and "TclWordKnownAtCompileTime". The general logic used by both to decide the issue is identical (I am very glad to see this, as it means that my understanding of the Token types is likely correct). What "TclWordKnownAtCompileTime" does beyond "TclIsLiteral" is to actually assemble the literal value, if requested. Note: The tclpro checker has commands to decide literal-ness and for assembly of the actual literal as well, based on the token list structure returned by the commands of the Tclparser package (exposing the core parser to the script level). I wonder if something can be done to expose 'TclWordKnownAtCompileTime' as well. I will remove my TclISLiteral form the patch for 8.5, and for 8.4 I will rename my function, but keep the reduced API, i.e. no assembly of a value, only deciding literalness. However this way the 8.5 function can be seen as 'obvious' extension of the conditional one going into 8.4 for TIP 211ng
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [7f16781485] (rid 261552) by serhiy.storchaka on 2026-11-13 11:18:45:
- closedate changed to: "2461357.9713335303"
- closer changed to: "serhiy.storchaka"
- icomment:
TclWordKnownAtCompileTime() is now used throughout the bytecode compiler (tclCompile.c, tclCompCmds*.c, tclCompExpr.c, tclAssembly.c), so words with backslash substitutions are treated as compile-time literals.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"