Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88208 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17017 invoked from network); 15 Sep 2015 09:30:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2015 09:30:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=stig.bakken@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stig.bakken@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.172 as permitted sender) X-PHP-List-Original-Sender: stig.bakken@gmail.com X-Host-Fingerprint: 209.85.212.172 mail-wi0-f172.google.com Received: from [209.85.212.172] ([209.85.212.172:35443] helo=mail-wi0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/B2-28087-B45E7F55 for ; Tue, 15 Sep 2015 05:30:52 -0400 Received: by wicge5 with SMTP id ge5so19834563wic.0 for ; Tue, 15 Sep 2015 02:30:49 -0700 (PDT) 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=XuSB3FNQj1Qx8fAZ31/C0D8psEdabCRSyC+GY+IO2uc=; b=X3dIpKTGRp8LwLG94ZP5zVtq4QxTtcaULQqPdQRBCruobuHoya53qY5knWi4x4+MUg EInsUM9Cmhy+RZfLTAbIVndCeRc86T1YEB89D/lS6s0Hu5YFIn4E/NMkgz6YY1PH3kIv o5DJf4qFm+Vm737rEsxXEo6WRp5Ng5V5WmG7qLK5a/lvIhPrZ0IhyU97eEsHL0ECCDb4 1WnNVpUCFR+Hh31We+C4Tt5aS2PH/mc4cy6Apt/MiP/Mz5eT/LBWvz9jI7tu2xIEA7yX jViy6uICVy/NQhel2+27I59bl17CzA7kudFOFZ60d34vpLjJy+umt6Guzray8GGKZLjk 2wxQ== MIME-Version: 1.0 X-Received: by 10.194.58.198 with SMTP id t6mr20156027wjq.79.1442309448972; Tue, 15 Sep 2015 02:30:48 -0700 (PDT) Received: by 10.194.157.97 with HTTP; Tue, 15 Sep 2015 02:30:48 -0700 (PDT) Received: by 10.194.157.97 with HTTP; Tue, 15 Sep 2015 02:30:48 -0700 (PDT) In-Reply-To: References: <55E4B9AA.9060906@dasprids.de> <55F20B8D.3010805@dennis.birkholz.biz> <55F20E72.6050309@dasprids.de> Date: Tue, 15 Sep 2015 11:30:48 +0200 Message-ID: To: Andrea Faulds Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7bacb0f85cc4c9051fc5d668 Subject: Re: [PHP-DEV] Generic classes and methods RFC From: stig.bakken@gmail.com (Stig Bakken) --047d7bacb0f85cc4c9051fc5d668 Content-Type: text/plain; charset=UTF-8 On Sep 12, 2015 16:57, "Andrea Faulds" wrote: > > > I'm with Levi here, I think type parameters should matter for static methods. An example might be a list class: > Just because you want it, doesn't make it possible ;-) The class type variables are specified when instantiating the class. Since you don't do that for static methods, the runtime has no information about which type was specified at the time the static method is called. - Stig --047d7bacb0f85cc4c9051fc5d668--