|Subject:||[BUG] LTA error message when using attributes on type objects|
|Date:||Mon, 4 Oct 2010 13:15:01 +0200|
|To:||rakudobug [...] perl.org|
|From:||Carl Mäsak <cmasak [...] gmail.com>|
From the backlog: <hudnix> well I just spent a miserable two hours figuring out that the error message "Type objects are abstract and have no attributes, but you tried to access @!foo" in fact had nothing to do with the attribute @!foo or anything else in my class, but was really complaining that I had declared my object with "my $obj;" instead of "my $obj .= new" Would it be possible to have the error message be something like "Tried to use type object $obj as an instance object"? Especially having the name of the variable with the object being improperly accessed seems like it would be a big help in a situation such as the above.