Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: af364c30587c1454c42ca0eda7010e7cda3875b2
Ticket: 50f67a3acef090c734090bb894ca42445b2f3d0c
INST_START_CMD bug?
User & Date: dkf on 2014-12-03 23:24:45
Changes

  1. icomment:
    The compiled version has been this way since 8.0, and the difference you observe is that we now compile <tt>source</tt> (as part of NRE-enabling it, which is useful for things like templating engines in coroutine-based web servers). It's very hard to avoid this sort of thing when compiling; you've got to have the ability to do things in a bit different order (especially to handle arguments like that) or you end up going crazy trying to generate code.
    <p>
    I continue to suggest that people relying on redefining commands that are being executed are in for a world of pain, and that this will get worse in 9.0. Indeed, I ought to propose changing the point where Tcl looks up the command implementation to immediately after the first word is read, even though dispatch to it won't happen until after all arguments are examined, since that would enormously simplify many things (while causing much hurt for people who do the most awful things). That's the sort of subtle change that would help compilation a lot by letting us ignore the worst cases entirely.
    <p>
    Except that it causes problems with autoloading. My brain hurts!
    
  2. login: "dkf"
  3. mimetype: "text/html"
  4. username: "dkf"