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

Re: construction clarification

Thread Previous
From:
Damian Conway
Date:
June 1, 2005 06:12
Subject:
Re: construction clarification
Message ID:
429DB419.7000903@conway.org
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.

Damian

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About