Further Class::Struct patching from Damian.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 10 Sep 2001 12:46:34 +0000 (12:46 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 10 Sep 2001 12:46:34 +0000 (12:46 +0000)
commit5551626dc585a9fdfe1494be006dd6c01306fbac
tree160d5f647ee8553d060a9d7ac63bd4c8d3bde8f1
parent17f79ebbbd3973522217b30539c665cfc7641376
Further Class::Struct patching from Damian.

The new new semantics are:

* If you pass an initializer for a nested object, it has to be:
a) a reference to an object of that class, or
b) a reference to an object of a subclass of that class, or
c) a reference to a hash of arguments to be passed to the
   class's constructor
* If you pass no initializer for a nested object, the attribute
  is initialized to C<undef>

p4raw-id: //depot/perl@11976
lib/Class/Struct.pm