Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32641 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29450 invoked by uid 1010); 5 Oct 2007 05:20:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29434 invoked from network); 5 Oct 2007 05:20:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2007 05:20:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 66.249.82.225 wx-out-0506.google.com Received: from [66.249.82.225] ([66.249.82.225:11733] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/70-25026-FA9C5074 for ; Fri, 05 Oct 2007 01:20:48 -0400 Received: by wx-out-0506.google.com with SMTP id s14so444573wxc for ; Thu, 04 Oct 2007 22:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=EWymFYEz+HNVzxcPGeL4DgKlFzlFNpndd05BqFtxCOs=; b=TFq29PfEsymYv2+p9LSRPaG6LaOS8njCN2s3QNQFXpDaYRFUpa3aSZeuppWUnsBeWub4LXn06973ZoJazQhl79I//RN7TK7Wq4GDll89k038IAwiTuU0IUUNhlhEzUHozX2feCZ/Zh+3f9llL0ebdlECDMQ1zlwa72WTEEhj2h4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JeQapzV2lF/W6jhu+K0cSNRPhGq8E1DwDJgAUkLpy4NlyikWOlYtJt2gN/n+sLbLqjVqHYuNxvwKTBvX38dBFwTS6c9xbviq8DKD/QiMocDhvQnQ0XoplrYarPKIZ1SDp04g93Jwi0ya5uiK/DESqLFNaj6xI4d3yX5wQpvoFKo= Received: by 10.70.7.4 with SMTP id 4mr18526881wxg.1191561645440; Thu, 04 Oct 2007 22:20:45 -0700 (PDT) Received: by 10.90.84.5 with HTTP; Thu, 4 Oct 2007 22:20:45 -0700 (PDT) Message-ID: Date: Fri, 5 Oct 2007 09:20:45 +0400 To: "Larry Garfield" Cc: internals@lists.php.net In-Reply-To: <200710042005.30734.larry@garfieldtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <52dbac0f0710011236u626c9566l6ab474dce0b3132e@mail.gmail.com> <200710042005.30734.larry@garfieldtech.com> Subject: Re: [PHP-DEV] substr/array_slice in [] From: indeyets@gmail.com ("Alexey Zakhlestin") On 10/5/07, Larry Garfield wrote: > Here's the question I see. Right now, does an ArrayAccess object work with > array_slice()? If so, then [2, 5] syntax would be just some nice syntactic > sugar. If not, then it becomes a powerful new feature, and implementing it > on normal arrays and strings becomes just a matter of consistent syntax. currently, array_slice doesn't work with ArrayAccess -- Alexey Zakhlestin http://blog.milkfarmsoft.com/