Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae1bdfce69d17af2675fbbc2b9ffde1a4711d0b1
Ticket: 2519474fffffffffffffffffffffffffffffffff
Cannot create nested object with same name as global command
User & Date: apnadkarni on 2009-01-19 11:19:07
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Sample:
    (web) 1 % oo::class create C {}
    ::C
    (web) 2 % oo::class create D {constructor {} { C create x }
    > }
    ::D
    (web) 3 % D new
    ::oo::Obj13
    (web) 4 % proc x args {}
    (web) 5 % D new
    can't create object "x": command already exists with that name
    (web) 6 % set errorInfo
    can't create object "x": command already exists with that name
        while executing
    "C create x "
        (class "::D" constructor line 1)
        invoked from within
    "D new"
    
    Definition of the outer proc x prevents creation of the "x" object within a class D instance.
    
  4. foundin changed to: "obsolete: 8.6b1"
  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: "apnadkarni"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to:
    Cannot create nested object with same name as global command
    
  12. type changed to: "Bug"