Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62793 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60564 invoked from network); 4 Sep 2012 13:43:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2012 13:43:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:61720] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/62-46870-58506405 for ; Tue, 04 Sep 2012 09:43:33 -0400 Received: by pbbrp8 with SMTP id rp8so9345119pbb.29 for ; Tue, 04 Sep 2012 06:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=4NH68VkEse7lDANWDwqNuCLMKyViqfRMc/diWHmrE78=; b=GtZBWHFbC/qXQFeLHcItHwvlSK4G3nH5XdILI4ZrfkO8BOSvfc8PawLTPMe2Lpa3C/ kwfsouaFuaOeTFIqIRgTLaTgwW8lrkVcWl9T2Sivt4VPL88uc0PFKQ4OQ4hekOXfbSGb bjM9agk3mJp9r7Phi96VIzdSq5FIo3WxMYyqaQWKv83Dv+AU9y7fJCo9fM5umcT/UoTk kO46exHEMH9/Um6jTC7vl4a8ENMPWhscbb3PpSIG3IxJ6w+j/cGdcfk4ilBiCrqznP5y /IpmdsYynGdHNu8bbzreZY3GhyT/jYWwvpOpMqyLoGiKxYot1/Aeop2bADLrWmNsv+gW hTaw== Received: by 10.68.136.102 with SMTP id pz6mr45742586pbb.160.1346766210282; Tue, 04 Sep 2012 06:43:30 -0700 (PDT) Received: from [192.168.1.104] (bb42-60-29-211.singnet.com.sg. [42.60.29.211]) by mx.google.com with ESMTPS id kp3sm12238077pbc.64.2012.09.04.06.43.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 06:43:29 -0700 (PDT) References: <4477847.1346676078470.JavaMail.root@wamui-june.atl.sa.earthlink.net> <50450C0B.9050206@sugarcrm.com> In-Reply-To: <50450C0B.9050206@sugarcrm.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: <6D73B437-7329-472B-906B-6E331ADE2215@gmail.com> Cc: "slevy1@pipeline.com" , Jannik Zschiesche , "internals@lists.php.net" X-Mailer: iPhone Mail (9B206) Date: Tue, 4 Sep 2012 21:43:24 +0800 To: Stas Malyshev Subject: Re: [PHP-DEV] Re: Support negative indexes for arrays and strings From: tjerk.meesters@gmail.com (Tjerk Meesters) On 4 Sep, 2012, at 3:59 AM, Stas Malyshev wrote: > Hi! >=20 >> The terminology "negative indexing" seems to imply that the feature >> should work with arrays. To restrict it to just strings might involve >> creating a term one would only associate with strings. >=20 > I do not see any way to change behavior of $array[-1] that would make > sense. So either only strings get it or nobody gets it. I suppose one could still extend ArrayAccess and have their own negative ind= ices support for arrays :) >=20 > --=20 > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20