in reply to Re: Correct idiom for default parameters
in thread Correct idiom for default parameters
Object constructors are generally called as class or objects methods Test->new([args])There's only one object constructor in Perl, and it's called bless. Test->new is nothing more than a class method, that just happens to return an object, often of the same class. More often than not, programmers decide said new() creates a brand-spanking new object, which gets initialized as well. These programmers make it hard to do MI.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Correct idiom for default parameters
by Your Mother (Archbishop) on Apr 29, 2010 at 14:07 UTC | |
|
Re^3: Correct idiom for default parameters
by Anonymous Monk on Apr 30, 2010 at 09:06 UTC | |
by Anonymous Monk on Apr 30, 2010 at 09:42 UTC | |
by LanX (Saint) on Apr 30, 2010 at 11:51 UTC | |
by JavaFan (Canon) on Apr 30, 2010 at 22:10 UTC |