[Rt-devel] Error propagation in RT::CustomField::Create.

Jesse Vincent jesse at bestpractical.com
Mon May 7 09:27:03 EDT 2007


> To make my patch backward-compatible (in case there are calls to  
> this Create method in scalar context), we can do this:
>
>   return (wantarray ? @rv : shift(@rv));
>

I'm ok with the wantarray solution. It might be worthwhile to add a  
helper method to RT::Record. Something like sub _return_from_create   
that implements the wantarray logic, so it's less cluttered.

thoughts?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20070507/482ee818/PGP.pgp


More information about the Rt-devel mailing list