Overview
| Artifact ID: | 17473158464061c08057e804269bb7b7ebca574d |
|---|---|
| Ticket: | 781929ffffffffffffffffffffffffffffffffff
[lexpand] expand-in-place command |
| User & Date: | msofer on 2003-08-08 20:40:57 |
Changes
- icomment:
Logged In: YES user_id=148712 This discussion is being actively pursued in other forums, but I'll register my caveats here for the record and defer any resolution until the syntax discussion is settled. It is definitely not true that this command does not alter Tcl's syntax; it does, and IMHO in a very perverse manner. This is shown by the author's remark that set y [lexpand $x] results in an error, a violation of rules 6, 10 and/or 11 in the endekalogue, which mandate that the resultof a [..] substitution is a single word and that substitution is single-pass. Making that example work within the current syntax would require [set] to expand its arguments, thus causing errors in thing like set x [list 1 2 3] Alternatively, [set] would need to know more about how each word argument was generated (is it the resut of an [lexpand]?) to treat it accordingly; this violates rule 2. Or else there is a second substitution pass just for the results of [lexpand], violating rule 10 In any case, this proposal does introduce new syntax; [lexpand] is not a Tcl command in the usual sense. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"