Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86687 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9009 invoked from network); 15 Jun 2015 21:58:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2015 21:58:26 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.160.181 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.160.181 mail-yk0-f181.google.com Received: from [209.85.160.181] ([209.85.160.181:34356] helo=mail-yk0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/55-15639-D7A4F755 for ; Mon, 15 Jun 2015 17:58:25 -0400 Received: by ykfl8 with SMTP id l8so68032948ykf.1 for ; Mon, 15 Jun 2015 14:58:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NeA2Bb2fopqwqu5Gf0955i45ec1lRyrlWhWMSRkBE9c=; b=AufmWsWrev/M9fi+PtnIbUZOEOL3XrMp9kwszSeOOCyJxgWQTWv4PUsKKHHMNTbA2l WzRkbO1QOb92W9oPPY7GKANQjKklq4a5oUI3qWKtrbkQprCQbxurQxDt2bzOYr8zM+mk 3BeqkwOLwAvlqqQLRyLpVLQGXez1tNj8OicvhNTyUlAABATfKonpA1ELmkdp81oVeMZZ SqabrJ2Hv+Uej4ACehv62N7je91hv57Plo6C2QkX32ij2+Xlj+at7KNuJBYf8VUIEC3v VAdwnf6tzP7rwiuA5kKbO7QKQwIotYf81PlGo2wReohLOzo/hspZ5UHehk8FsRlBjtZQ DwWw== X-Gm-Message-State: ALoCoQlctnlf6nxQr0bodmuXANQNxX0s9Lxyxpy6twq6pe8ZdOTtJCnltMW5EjhNSKylSmTbimaeOY2/HV/14LSNEkotihRFVSxKMKo+VZTAoQfLkIh6nHPrbopYT+8lTyoT3yPmNtM2m81AQGkNdNvQe534BVWj9IGqNPgXkAvIZqL4Lkm8uyY= MIME-Version: 1.0 X-Received: by 10.52.3.42 with SMTP id 10mr42599979vdz.10.1434405497769; Mon, 15 Jun 2015 14:58:17 -0700 (PDT) Received: by 10.31.10.201 with HTTP; Mon, 15 Jun 2015 14:58:17 -0700 (PDT) In-Reply-To: References: <971AB39D-1E20-43E8-9CF1-A7F67E3C14C3@icicle.io> <556363D3.1040902@gmail.com> <12C3389A-AFF5-42CA-8190-E4227309DAED@icicle.io> <016201d0a6bf$96e37dc0$c4aa7940$@belski.net> <0A4CC87D-2E54-4202-9AA2-22856F0B6011@icicle.io> <008701d0a762$4348c320$c9da4960$@belski.net> <36F7469F-7D86-43F6-ABC7-9252DF707BFC@icicle.io> Date: Tue, 16 Jun 2015 00:58:17 +0300 Message-ID: To: Aaron Piotrowski Cc: PHP Internals Content-Type: multipart/alternative; boundary=485b397dd61328c5840518958e02 Subject: Re: [PHP-DEV] [RFC] Throwable Interface From: dmitry@zend.com (Dmitry Stogov) --485b397dd61328c5840518958e02 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think REGISTER_INTERFACE() macro in zend_interfaces.h is better. Actually, it's not related to ITERATORs at all. Thanks. Dmitry. On Tue, Jun 16, 2015 at 12:48 AM, Aaron Piotrowski wrote: > > On Jun 15, 2015, at 9:53 AM, Dmitry Stogov wrote: > > On Mon, Jun 15, 2015 at 4:55 PM, Aaron Piotrowski wrote= : > > > On Jun 15, 2015, at 6:56 AM, Anatol Belski wrote: > > Would you like me to move zend_ce_throwable to zend_exceptions.h/c or is > that > something you=E2=80=99d take care of after the merge? > > > I don't care about this a lot. I just think it's better. > If you don=E2=80=99t see any problems, please, move the code. > > > Moving the definition of zend_ce_throwable to zend_exceptions.h/c > requires either: > > 1. Moving #define REGISTER_ITERATOR_INTERFACE from > zend_interfaces.c to zend_interfaces.h so it is available in > zend_exceptions.c (I could take the opportunity to rename this macro > to REGISTER_INTERFACE). > > 2. Defining a macro in zend_exceptions.c that is identical to > REGISTER_ITERATOR_INTERFACE. > > Which option sounds better? > > Aaron Piotrowski > --485b397dd61328c5840518958e02--