Re: RFC - MACRO
| From: | Gustavo Lopes | Date: | Thu, 23 Dec 2010 00:57:40 +0000 |
| Subject: | Re: RFC - MACRO | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51128@lists.php.net to get a copy of this message | ||
On Thu, 23 Dec 2010 00:48:44 -0000, Mathias Grimm <mathiasgrimm@gmail.com> wrote:
On Wed, Dec 22, 2010 at 7:47 PM, James Butler <james.butler@edigitalresearch.com> wrote: i could replace with a macro: MACRO("HND_ERR","if ($obError->hasError()) { return $obError;)") $obError = $object->fetch($params,$transaction); HND_ERRSo, not only do you want macros, you want to write flow control macros... http://blogs.msdn.com/b/oldnewthing/archive/2005/01/06/347666.aspx -- Gustavo Lopes