On Thu Nov 20 20:46:18 2008, [EMAIL PROTECTED] wrote: > If you accidentally try to instantiate a class that has not been > defined, but the namespace for that class has been vivified, then you > get an obscure error message: > ... > With the attached patch, Rakudo instead dies with a more informative > message: > ... > The patch is a bit of a hack. It introduces a new() method to > Module.pir which just constructs the error message and dies. Most of > the added code is used to build the intended class name. Surely > someone more familiar with the NameSpace pmc can improve it a bit? > We should actually detect this at compile time, not runtime. That depends on registering and checking/looking up symbols as we compile, which is on the task list for the next month or so. So thanks for the patch, but I'm afraid it's the wrong approach.
I will leave the ticket open, however, as something that needs to happen as a result of the symbol registry stuff. Once we get a useful error message at compile time, it's can be closed. Thanks! Jonathan