Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17435 invoked from network); 20 Jan 2014 20:17:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 20:17:27 -0000 Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:58697] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/46-02192-09D7DD25 for ; Mon, 20 Jan 2014 14:48:32 -0500 Received: (qmail 23600 invoked from network); 20 Jan 2014 20:48:29 +0100 Received: from heim-032-99.raab-heim.uni-linz.ac.at (HELO RoLaptop) (193.171.32.99) by ns73.kreativmedia.ch with (AES128-SHA encrypted) SMTP; 20 Jan 2014 20:48:29 +0100 To: "'Nikita Nefedov'" , References: <004c01cf123d$35730870$a0591950$@tutteli.ch> <52D71748.1090402@googlemail.com> <52D71FAE.8030002@ajf.me> <005001cf124f$3a40df00$aec29d00$@tutteli.ch> <20140116110127.202079vzjsj76n7b@webmail.tutteli.ch> <0B.B1.24763.139B7D25@pb1.pair.com> <002001cf12da$2bfbda90$83f38fb0$@tutteli.ch> <52DCA3E7.80602@lerdorf.com> <52DCED71.3020207@pthreads.org> <006301cf15f5$22f8df60$68ea9e20$@t utteli.ch> In-Reply-To: Date: Mon, 20 Jan 2014 20:48:26 +0100 Message-ID: <009001cf1618$9667e090$c337a1b0$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGahXeLh/KZbd8XAeJ9KP0Xitay+AMfLragAqrQQ80CkbQpYAFln/pXAl+CsdYBwvhsiAIDXIOGARM/QlkA7wRXcgLum6/ZAi9iw6kCkinNlQG3OuqUAyZ4BPEBDlFlpAEd3cs/AZped04CLx2itAF0EZI+AcmBUwOZudF1AA== Content-Language: de-ch Subject: RE: [PHP-DEV] Introducing "Array Of" RFC From: php@tutteli.ch ("Robert Stoll") >=20 > I would love to get generics as long as typed arrays. And when I say = typed > arrays I mean array which can hold only the elements of said class = (not an > interface). It's not just semantics, it's also optimization that can = be > done when you know that array will hold only elements of the said = type. > (You know how much memory element will take. It'll make a room for > possible optimizations) >=20 Hm.. I did not understand the RFC this way. It says, "allowing an array = of that hinted type to be passed as an argument", so I assumed it would = work with interfaces as well. And what about sub-types?