Re: Strange attribute problems.
Thomas Fjellstrom <[email protected]> Tue, 19 Apr 2005 20:50:15 -0600
| Newsgroups | gmane.comp.kde.devel.perl |
|---|---|
| Message-ID | <[email protected]> |
On April 19, 2005 06:14 pm, Thomas Fjellstrom wrote: > Not sure how to describe it... > > Basically, in a NEW of a QObject derived "class", I'm assigning something > passed in through @_ to an attribute. simple enough, yet if I try and get > the value of said attribute, I get undef. I've tried different names for > the attribute, and initially assigning the value to a plain $variable, the > $variable holds the value nicely. I tried assigning the $variable to the > attribute, and still, the attribute is undef. Nevermind about this bit, it appears I was assigning to the attribute before calling SUPER::NEW. -- Thomas Fjellstrom [email protected]