On Tuesday, November 23, 2004, at 09:30 PM, Adam Kennedy wrote:
Calling syntax might look like this:
push @status_options, 'hidden' if
GCt::glyph_attribute->method_chain(
'retrieve' => [ glyph_type => $glyph_type, attr_name => 'face_hideable' ],
'attr_value'
);
The method_chain (apart from the evil of polluting UNIVERSAL :)) idea will have the problem of params.
What if I want $object->method1('foo')->method2('bar');
As shown above, I'd do this with array references:
$object->method_chain( method1 => [ 'foo' ], method2 => [ 'bar' ] );
-Simon
_______________________________________________ sw-design mailing list [EMAIL PROTECTED] http://metaperl.com/cgi-bin/mailman/listinfo/sw-design
