Object-InsideOut - Re: OIO and default value

Posted on Sat Jan 1 01:19:49 2000 by gaetan in response to 3738 (See the whole thread of 13)
Re: OIO and default value
Hello

It works with the new Default attribute (this interface is cleaner) .... but not in all cases:

The default value I would like to set to my attribute is an object (and not a constant)
my @attr : Field : Default(my::defined::object->new()) ;

Would it be possible to eval the :Default attribute parameter ? If the eval fails, then the attribute is initialized as if the eval was not called.

Gaetan
Direct Responses: 3746 | Write a response