Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103371 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57779 invoked from network); 22 Oct 2018 22:46:27 -0000 Received: from unknown (HELO mail-wm1-f53.google.com) (209.85.128.53) by pb1.pair.com with SMTP; 22 Oct 2018 22:46:27 -0000 Received: by mail-wm1-f53.google.com with SMTP id b203-v6so466480wme.5 for ; Mon, 22 Oct 2018 12:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=gnFQiz//bJLAkekpwr1D/ahihqnEpsRWqOBueqX8qAk=; b=Q7NEXfqeyrz7MaMc7u8hM5mspDffju+RGQ1euQtjKYmMMeVuaSu/3oxA+riGIjF9UI BNbZfXBm2wj61qpXFbPRxEs/nIomZQYQzm0Q2PuDeMTbu76NyiDQBY/G3Cevn5iUb0t7 GfcmlMKp+QthowqlimpaKOmjs7mF8yYTooMtDCZd43Dj7cCp+2A/OSda3OdBA731ekep 3pzGBoHEYHx3/p+emoi90a432+jqo5AgLosZlEiqjCgQuMeMwpT7yCg2U5FexaX8DS6s K+L/lq2FtUOtJ4jKDC9sDSBDxOeXBHmxZb+jB4PQk7exRiaycQmdVAX9EpzEG79mjrkh 92qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=gnFQiz//bJLAkekpwr1D/ahihqnEpsRWqOBueqX8qAk=; b=bwU7cwgERftogFZeh4hBAIwuzGsXKlEiu37XyikemKoH9xxfHonrpcrP/iwo7jXG7h Ug38WQleCTt1yLR4iP1FX9iFZ/xo7CEL+ZycHcGkso9ovT5QK0RkAnCd875aO+gpTEpO 0b+zcH5tufFnVkWFXUvIohkMGxuF7OzSyKJNjeUwyvD1d0tttAPqB5/NoIvg8HwM7ZBt nZ4Ud6fgIBIarff3RCrmkydz8OV3ngLnSUwIoDNhVTtvZQs0HWrJSvv5JqdWwTco82MW BjDtkz78QlGUSnNIyasazi/Yeaek58RcPruoGaRnoXP5O3EfPA4l9qldmaNOjFXxAckl VdLw== X-Gm-Message-State: ABuFfog3wx7PaIDLG3XGKuxv/Jntjy/VetSBXzl7IJX+dDo4FWzZK9oG CGeK2hiSM/dr8T/34rWIJ2/8Kf6m X-Google-Smtp-Source: ACcGV60GzPY3lJRc3lAskPDJ6yREMc3MKBGIoe2jXjVtWyoXIe4HWjkVvK6LGPp0RZLpe/kjGE7FtQ== X-Received: by 2002:a1c:bc82:: with SMTP id m124-v6mr721136wmf.47.1540234868147; Mon, 22 Oct 2018 12:01:08 -0700 (PDT) Received: from [192.168.0.14] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id a1-v6sm29118660wrt.79.2018.10.22.12.01.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 12:01:07 -0700 (PDT) To: internals@lists.php.net References: <0047f3c7-3e9e-ef6f-2d7a-e58c316ea751@gmail.com> <1914897.W2W4DmmTqA@vulcan> Message-ID: <578cc80a-372b-d3af-2e83-73d3b3ef6704@gmail.com> Date: Mon, 22 Oct 2018 20:01:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1914897.W2W4DmmTqA@vulcan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] Composition over inheritance: native support for "delegating" methods? From: rowan.collins@gmail.com (Rowan Collins) On 22/10/2018 14:38, Larry Garfield wrote: > Sometimes when proxying to an object like that, you're supposed to return > $this, but your $this is different than the proxied object's $this. Hm, that's a very interesting limitation. I wonder if there's some way to include common manipulations like this in the syntax, while still feeling more convenient than writing out the whole method signature. Regards, -- Rowan Collins [IMSoP]