Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60629 invoked from network); 2 Nov 2015 09:26:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2015 09:26:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:34611] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/F1-42726-C2C27365 for ; Mon, 02 Nov 2015 04:26:05 -0500 Received: by wikq8 with SMTP id q8so47022302wik.1 for ; Mon, 02 Nov 2015 01:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=Tblg1BwqRh64LQBD4smGYBJGLlMTp1Hi2AvkXoFNlMQ=; b=LiUr1dt5ujfOscefXYMMANeCkg0F3lDxJhfu4w/7A1hIOf0gjhFAx0BLbp8fj2NAxa 31R1eLOBQH9KAAq6ec0OdIw263UayFKrEN4eHICxRHxqCWPp/3GaOyiniLAw6+wSvsKc fQ7XL6GkdPfL6T/jONvMi3Mzc6e9gNT4GBBYdKBUKBCm6xgCGL+Jjb8/9RMPbQ3lNuXb E+T2+jwK2x+TaO/fZCewV6eBfwiBU+b5lK8b0NJrVpdqbUVc+aG8mxKbjyNqFShyDOBh CmA4MYE+diG4YS2PrC8kxWQrV5kmyGtKPUePRyZGRGqw0JzsLiS8xNtNvZ25VVWUJcS3 kq4Q== X-Received: by 10.194.175.100 with SMTP id bz4mr22270311wjc.123.1446456362186; Mon, 02 Nov 2015 01:26:02 -0800 (PST) Received: from [192.168.0.136] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id b1sm21282992wjx.12.2015.11.02.01.26.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Nov 2015 01:26:01 -0800 (PST) To: internals@lists.php.net References: <31.98.13635.A9966365@pb1.pair.com> Message-ID: <56372BF6.9000901@gmail.com> Date: Mon, 2 Nov 2015 09:25:10 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <31.98.13635.A9966365@pb1.pair.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Friend class/function From: rowan.collins@gmail.com (Rowan Collins) 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". Regards, -- Rowan Collins [IMSoP]