in reply to Re: Re: Re: OO Perl: calling a constructor within a class
in thread OO Perl: calling a constructor within a class

Perl 6 is going to have a much nicer way to solve this problem.

I like the sound of that... last I heard there was some strong opposition to an ||= that tests for definedness rather than truthfulness. I've always been on the side of having such a construct, especially since ||= is so tempting for newbies to use, even *after* they've been told of the pitfalls.

The only remaining question is what will the operator look like?

-Blake

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: OO Perl: calling a constructor within a class
by TheDamian (Vicar) on Sep 28, 2001 at 14:12 UTC
    The only remaining question is what will the operator look like?

    if (tell $you) { require kill 9 => $you }

    ;-)

Re: Re: Re: Re: Re: OO Perl: calling a constructor within a class
by davorg (Chancellor) on Sep 28, 2001 at 16:18 UTC
    The only remaining question is what will the operator look like?

    I didn't tell you this, right, but you may find a clue here.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you don't talk about Perl club."