Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4cbc9169d3394505847b12a39722e164d4e10604
Ticket: 1959483fffffffffffffffffffffffffffffffff
magic empty body misfeature
User & Date: dgp on 2008-05-07 12:45:18
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    As mentioned before:
    
    http://aspn.activestate.com/ASPN/Mail/Message/tcl-core/3316773
    
    % namespace path oo
    % object create foo
    ::foo
    % define foo method x {} {}
    % foo x
    unknown method "x": must be destroy
    
    Contrast with:
    
    % define foo method w {} {#}
    % foo w
    %
    
    This is a repeat of the misfeature of
    [bind] to give magic treatment to
    a perfectly valid body value -- the
    empty string.  It's analogous to the
    [rename $cmd {}] misfeature that similarly
    abuses a perfectly valid command name.
    
    I'd prefer an [undefine] command to 
    destroy method definitions, analogous
    to the [unset] command, where we've
    properly not given magic unsetting
    properties to [set v {}].
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "magic empty body misfeature"
  12. type changed to: "RFE"