On Tuesday, November 23, 2004, at 05:40  PM, Terrence Brannon wrote:

��� It would be neat if there were some method-chaining syntax/module which
��� indicated "return false if your method call returns false":


������ $object-?->method1-?->method2-?->method3

It should be easy to add a UNIVERSAL::method_chain method that would do this.


Calling syntax might look like this:

  $object->method_chain( qw/ method1 method2 method3 / );

� push @status_options, 'hidden' if
    GCt::glyph_attribute->method_chain(
      'retrieve' => [
����������� glyph_type => $glyph_type,�
����������� attr_name� => 'face_hideable'
      ],
      'attr_value'
    );

(Or import and call it as a function if you'd rather not pollute UNIVERSAL.)

-Simon


_______________________________________________ sw-design mailing list [EMAIL PROTECTED] http://metaperl.com/cgi-bin/mailman/listinfo/sw-design

Reply via email to