Tk Library Source Code

View Ticket
Login
Ticket UUID: 458011
Title: Limitations to the _names_ of nodes
Type: Bug Version: None
Submitter: nobody Created on: 2001-09-03 11:16:47
Subsystem: struct Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-09-06 13:30:39
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-09-05 23:36:40
Description:
Hello,

I found some annoying errors/limitations in the tree
library 
included in tcllib (at least in version 0.4, but
nothing seems
changed in 0.8).

For my purposes, the limitations can be overcome, but
the
annoyance
comes from the fact that they were not documented:

- The names of nodes can not include :: or a space
(probably tabs
  are forbidden as well). Using :: maked Tcl complain
about a 
  missing parent namespace and a space caused a message
about
missing
  data elements (in my memory serves me).

  All these errors occurred after I successively
created the
node!

- I had to examine the code to see that the index of
the insert 
  subcommand may be "end" as well as an integer.

- The version of Tcl that is required is later than 8.0
(the
  one which I used initially).

As far as I am concerned, the changes to be made are:

- Verify that the name of the node is consistent with
the
limitations,
  while creating it with the insert subcommand.
- Verify the version of Tcl
- Add the above limitations to the documentation. 

Regards,

Arjen Markus
User Comments: nobody added on 2001-09-06 13:30:39:
Logged In: NO 

Thank you for the prompt reply/repair. I will send some
other comments later.

andreas_kupries added on 2001-09-06 06:36:40:
Logged In: YES 
user_id=75003

Patch committed.

andreas_kupries added on 2001-09-06 06:33:19:

File Added - 10420: tcllib.458011.diff

Logged In: YES 
user_id=75003

Requirement of Tcl 8.2 is documented in the 'tree.n' 
manpage. Added to requirement now to the code too.
Documented limitations. Added verififcation.

See enclosed patch.

Attachments: