Skip to content
Tcl Source Code View Ticket
Login

View Ticket

set/incr byte-code compilation doesn't react on overwritting

Closed / Fixed218771ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:10
OriginalBugID: 2071 Bug
Version: 8.0.5
SubmitDate: '1999-05-14'
LastModified: '1999-10-21'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Linux
OSVersion: RedHat 5.1
Machine: NA
FixedDate: '1999-10-21'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


Tcl 8.0.5 Bug

Name:  Uwe Zdun
email:  [email protected]
Support:  None
Severity:  3
OperatingSystem:  Linux (Red Hat 5.0+ on Intel)
OperatingSystemVersion:  rh 5.1
Synopsis:  set/incr byte-code compilation doesn't react on overwritting

ReproducibleScript:
    if I do something like: 
      rename ::set ::tcl_set
      proc set args {puts ***$args}
    in a script the byte-code compiler does not update the compilation on 
    the global level (interactively (of course) it functions well)
    
    if I call afterwards:
      set r 45
      puts $r
    the original set is invoked, while in a "namespace eval" and 
    in procs the user-defined set is invoked
    
    

DesiredBehavior:
    the toplevel script should be recompiled, when overwriting set/incr and
    the 
    other compiled commands. do you have a patch
    for this problem?? 
    
    by the way, the same happens if I overwrite set/incr from C,
    
    I have worked around this problem by overwriting set/incr before
    byte-code
    compilation, but since I don't need this all the time, this reduces
    performance 
    


This works as expected in 8.2. 
-- 10/21/1999 hobbs
welch Closed ticket [218771ffff]. [History diff]2000-10-26 08:28:14
dgp Ticket [218771ffff]: 3 changes [History diff]2001-04-21 04:09:23
Log in (anonymous is fine) to add a comment.