develooper Front page | perl.perl6.language | Postings from June 2005

Re: construction clarification

Thread Previous
Damian Conway
June 1, 2005 06:12
Re: construction clarification
Message ID:
Carl Franks wrote:
> However, if I allowed the default 'new' to handle that case, then the
> BUILD submethod has to be aware of that.
> I thought it would be cleaner to 'document' the special case with a
> seperate constructor, and also not require any special-case logic in the
> BUILD submethod.
> Is that really off the wall?

Not at all. It's entirely reasonable. As I mentioned in my previous message, I 
simply missed your original intent.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About