Overview
| Artifact ID: | 677859b8a95d8c77e7a8a0c121fa17b0511887c9 |
|---|---|
| Ticket: | 9a2bc209faf87b2f156d1971447f59e294184f9e
Bytecode machinery to handle compile epoch bumps is not right. |
| User & Date: | sebres on 2017-06-06 17:24:36 |
Changes
- icomment:
I think it may be a false reasoning... In this case more interesting the question "When exactly the command resolving should take place - before or after the arguments will be substituted?". So in my opinion, it works as expected...<br/> Because I guess the substitution of argv[0] (command) should be made exactly the same manner as substitution of following arguments (argv[1]...argv[N]). Trying to execute it twice: <code><pre> % proc demo a {upvar 1 $a[proc upvar args {puts WOW}] b} % demo a % demo a WOW % </pre></code> So corresponding to my question above, either the execution is correct at all, because we targeted here not yet changed "upvar", that will be modified after 1st execution only. Or it is wrong, if resolving should take place implicit after substitution of the command arguments (I'm definitively against). In my opinion this does not differ from the following logic (why it should be different by the command resolving?): <code><pre> % set x 1 1 % concat $x [incr x] 1 2 % concat $x [incr x] 2 3 </pre></code> - login: "sebres"
- mimetype: "text/x-fossil-wiki"