in reply to Re^2: bless with => separated args
in thread bless with => separated args

I'm far from being an OO expert myself, but the basic reason is that they think that new() should be used as a class method and that an instance method to provide cloning should be supplied instead, to keep their roles/functionalities separated, so as to avoid possible confusion.

Replies are listed 'Best First'.
Re^4: bless with => separated args
by Anonymous Monk on Aug 01, 2005 at 11:07 UTC
    The existance of
    ref $proto || $proto
    in the constructor doesn't prevent you from using new strictly as a class method.

    It just doesn't enforce that upon someone who doesn't mind.

    I use

    ref $proto || $proto
    in my constructors, but I use my constructors purely as class methods. However, I let other uses of my modules free in their choice.