Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63363 invoked from network); 2 Nov 2015 09:46:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2015 09:46:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:37056] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/52-42726-DD037365 for ; Mon, 02 Nov 2015 04:46:06 -0500 Received: by wicfv8 with SMTP id fv8so46405574wic.0 for ; Mon, 02 Nov 2015 01:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cHagtrnrGYkSMh+0v1wISUtqcTo40mna5V0RNlT+XNs=; b=itUnljsXS6/yVhQpuTSZe0wu94Hk+GyJNMmWBIgRwDElHDorFTBrTKq1kHicRSbJKP Rs08UjKzUx+Jd80cU18yQNgKRwfgG3MmpUJHv2wWBrX9/hcP+7lbK1t7AZQ9IgpTo940 poqcHBJHfoBHFaD/VxQDaricI8mnawvNs8LiEBv9qP5LUxN5yQVacLXQKmhn2PtrbtL2 m8Mm0oM38RafQsdXCSaZEuUJVgy2P4+9Cm+IfTjmBjQONrbboP5B64QQom5WHcACsEC1 N7qHEHGIc5qdW9leuXjiWk0xrlFbMwZGUpfQ5luYM9t5AbIISB0IoJm3QfdShluxntJ7 pNZg== MIME-Version: 1.0 X-Received: by 10.194.143.43 with SMTP id sb11mr25336348wjb.120.1446457560011; Mon, 02 Nov 2015 01:46:00 -0800 (PST) Received: by 10.28.145.200 with HTTP; Mon, 2 Nov 2015 01:45:59 -0800 (PST) In-Reply-To: <56372BF6.9000901@gmail.com> References: <31.98.13635.A9966365@pb1.pair.com> <56372BF6.9000901@gmail.com> Date: Mon, 2 Nov 2015 09:45:59 +0000 Message-ID: To: Rowan Collins Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=089e0112c50c0c203505238ba5fc Subject: Re: [PHP-DEV] Re: Friend class/function From: leight@gmail.com (Leigh) --089e0112c50c0c203505238ba5fc Content-Type: text/plain; charset=UTF-8 On 2 November 2015 at 09:25, Rowan Collins wrote: > Andrea Faulds wrote on 01/11/2015 19:35: > >> I recently wished PHP had this feature when trying to implement the >> Khronos Group Typed Arrays specification in PHP, which requires sharing >> certain data between unrelated (inheritance-wise) classes. I ended up >> having to expose a public method to get the data, but named in a way that >> was likely to deter use. >> > > Would "package" (namespace-based) visibility have solved the problem in > this case? That's something I've often wanted - "this is public within this > Lib, but should never be used outside it". > > This was worked on for 7, but had a fundamental problem blocking it - See Guilherme's recent runtime execution scope mail. --089e0112c50c0c203505238ba5fc--