Overview
| Artifact ID: | d627d758a45c79aa0c057a68dea23275e25bbcc5 |
|---|---|
| Ticket: | 1661637fffffffffffffffffffffffffffffffff
direct compile of pure list scripts |
| User & Date: | nijtmans on 2008-06-03 03:13:31 |
Changes
- icomment:
Logged In: YES user_id=61031 Originator: NO The only thing we should worry about is when a list element contains a ';', and it is not constructed using 'list'. E.g.: >set x {puts stdout a;puts stdout b};# string containing two commands puts stdout a;puts stdout b >lindex $x 2;# now $x will become a list, but the string rep is not adapted a;puts > eval $x a b Will this still function the same after applying this patch? A way out of this problem is simply disallowing that string elements contain ';'. Then the 'lindex $x 2' should simply give an error that the string cannot be converted to a valid list. Then, still, it is a slight incompatibility, but at least the user is pointed to the place where the real problem is: Trying to convert such kind of string to a list, which changes the semantics. This can be shown as well by: >lappend x c puts stdout {a;puts} stdout b Now magically, curly braces appear around the "a;puts" For the record: I agree with this patch, but the consequence for the list behavior should be well considered. Regards, Jan Nijtmans - login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"