| Ticket UUID: | 2898640 | |||
| Title: | "info instances" method fails | |||
| Type: | Bug | Version: | None | |
| Submitter: | duquette | Created on: | 2009-11-16 19:17:07 | |
| Subsystem: | snit | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-11-17 06:54:05 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2009-11-16 23:54:05 | |||
| Description: |
If a snit::type or snit::widget's type namespace has a child namespace other than the instance namespaces, then the call "$type info instances" will fail with the following error:
can't read "instance": no such variable
The error is in the routine ::snit::RT.typemethod.info.instances, which loops over [namespace children $type], thereby presuming that all child namespaces are instance namespaces. This need not be the case. The call to [namespace children] should use a pattern that matches "${type}::Snit_inst*".
The same idiom also exists in ::snit::RT.typemethod.destroy, which implements the "$type destroy" command.
| |||
| User Comments: |
andreas_kupries added on 2009-11-17 06:54:05:
allow_comments - 1 andreas_kupries added on 2009-11-17 06:53:59: Fixes and extended testsuite committed. Versions bumped to 1.4.1 and 2.3.1. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki