From: SourceForge.net <no...@so...> - 2009-01-28 15:32:33
|
Bugs item #2519474, was opened at 2009-01-19 11:19 Message generated for change (Settings changed) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2519474&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 35. TclOO Package Group: current: 8.6b1 Status: Open Resolution: None >Priority: 8 Private: No Submitted By: Ashok P. Nadkarni (apnadkarni) Assigned to: Donal K. Fellows (dkf) Summary: Cannot create nested object with same name as global command Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2519474&group_id=10894 |