Overview
| Artifact ID: | becf0a4b15bd7ee275dd30516d6a384febcd3e46 |
|---|---|
| Ticket: | 684534ffffffffffffffffffffffffffffffffff
[lconvert] command, expands lists inline |
| User & Date: | dkf on 2003-08-10 22:00:52 |
Changes
- icomment:
Logged In: YES user_id=79902 Am I right in saying that this makes lists be expanded by the [] syntax when substituted? If so, has the author considered what happens when the retagging of the value is performed in other ways, such as when it is the result of a script? proc foo {} { set list [getsomelistofstuff] puts "list is $list" lconvert $list } set bar [foo] ;# Blows up unexpectedly! If the above holds, then consider what happens when foo is invoked from another interpreter (e.g. if it is in a safe interpreter and it is invoked from the master.) If it does *not* hold, so that the magic only ever happens for [lconvert ...], then you've really got a very tricky new syntax construct. I don't like either. Though the competing {expand}... syntax sucks, it sucks less when it comes to considering these other modes of failure. - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"