in reply to new() is just a constructor by convention right?
Yes, the question should be reworded to "Which of the following is an object constructor in Perl?" and the answer is "depends on the module". Though "bless" is almost a better answer than "new" as are "TIESCALAR", etc.
Though the tradition of using "new" is so strong that I can understand that answer. I can't, at the moment, think of a single object module that doesn't provide "new" as a constructor.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: new() is just a constructor by convention right?
by merlyn (Sage) on Apr 23, 2001 at 23:55 UTC | |
|
(dws)Re: (tye)Re: new() is just a constructor by convention right?
by dws (Chancellor) on Apr 24, 2001 at 00:28 UTC | |
|
(Ovid - constructor names) Re(2): new() is just a constructor by convention right?
by Ovid (Cardinal) on Apr 24, 2001 at 00:05 UTC |