in reply to Re^2: confusing constructor code
in thread confusing constructor code
That warning is there for a reason and your code is different from my code.
Your code assumes that the class name has been shifted out of @_ already while my code assumes it's still in @_. I would like to keep the warning just in case somebody (that is, I myself) calls the constructor with the wrong number of arguments. Having the code silently swallow all arguments would be far worse than having a warning telling me what's wrong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: confusing constructor code
by Burak (Chaplain) on Jul 01, 2008 at 08:07 UTC |