On 12/09/2012 00:45, JonoK wrote:
> Is there a way to make the auto name global? Or is there an elegant
> way to only have the name generation override in one place.
It sounds to me like that's a bug in the name generation code; itcl 4
(the version you're testing) has been substantially rewritten from
previous versions, and it sounds like this is a place where an issue
remains. (I've got an idea about what's going on; it's probably linked
to a change in the semantics of name qualification in the TclOO
constructor layer that itcl 4 is building on top of. TclOO itself is
immune because it uses a different algorithm for automatic name
generation. The fix is to do a little adjustment to the name
construction code in Itcl_HandleClass in itclClass.c; I think adding a
'::' in the right spot will do the trick, it's a one-liner.)
Fortunately, this is actually likely to be easy to fix quickly. We're
testing release candidates of Tcl 8.6b3, so a critical problem like this
can be dealt with very rapidly. I've filed a bug report attaching your
message and my suggested fix (and, importantly, its consequences):
https://sourceforge.net/support/tracker.php?aid=3566940
Donal.