Tk Library Source Code

View Ticket
Login
Ticket UUID: 1556310
Title: "scale" exists as a Tk widget - name conflict when importing
Type: Bug Version: None
Submitter: arjenmarkus Created on: 2006-09-11 12:18:13
Subsystem: math :: linearalgebra Assigned To: arjenmarkus
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-09-26 09:20:06
Resolution: Invalid Closed By: sf-robot
    Closed on: 2006-09-26 02:20:06
Description:
As "nurwodah" found out on the chat, the linear algebra
package exports a procedure "scale". If you do:

  namespace import ::math::linearalgebra::*

in wish or have Tk loaded in another way, then
the name "scale" conflicts with the scale widget.

We need to repair this ...
User Comments: sf-robot added on 2006-09-26 09:20:06:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

dgp added on 2006-09-12 03:43:47:
Logged In: YES 
user_id=80530


IMHO...

Nothing to repair; this is
not a bug.

[namespace import] the
::math::linearalgebra::scale
command into your namespace,
not the global one.

If you insist that you must
import both commands into
the same namespace then
[rename] one of them.  This
is name conflict resolution 101.