From: SourceForge.net <no...@so...> - 2003-10-20 22:56:38
|
Patches item #827119, was opened at 2003-10-20 17:31 Message generated for change (Comment added) made by msofer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=310894&aid=827119&group_id=10894 Category: 44. Parsing and Eval Group: TIP Implementation Status: Open Resolution: None Priority: 5 Submitted By: Don Porter (dgp) Assigned to: miguel sofer (msofer) Summary: TIP 157 implementation Initial Comment: Here's a first draft implementation of TIP 157 as a patch to the HEAD. Note changes to the public interface. Besides the script level {expand} expansion, a new Tcl_Token type #define TCL_TOKEN_EXPAND_WORD 256 is in tcl.h and a new bytecode opcode #define INST_LCONCAT1 100 is in tclCompile.h Patch does not yet include documentation or test updates. Contributions for both are welcome, as well as mucho banging on it in search of bugs. There are alternative implementation ideas out there too, I'm sure, particularly on better ways to handle bytecode compiling of the {expand} operation. Feel free to treat this as the straw man. ---------------------------------------------------------------------- >Comment By: miguel sofer (msofer) Date: 2003-10-20 19:05 Message: Logged In: YES user_id=148712 The new INST was missing in the tclInstructionTable (tclCompile.c); patch updated. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2003-10-20 17:45 Message: Logged In: YES user_id=80530 Probably worthwhile to note that the controversial syntax choice between TIPs 157 and 144 are completely determined by line 337 of the patched tclParse.c. Change static char expPfx[] = "expand"; to static char expPfx[] = ""; and this patch becomes an implementation of TIP 144. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=310894&aid=827119&group_id=10894 |