Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6219 invoked from network); 1 May 2013 08:55:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2013 08:55:42 -0000 Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.52 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 209.85.219.52 mail-oa0-f52.google.com Received: from [209.85.219.52] ([209.85.219.52:59117] helo=mail-oa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/82-18873-D88D0815 for ; Wed, 01 May 2013 04:55:41 -0400 Received: by mail-oa0-f52.google.com with SMTP id n12so1295144oag.11 for ; Wed, 01 May 2013 01:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=qpkXu/ae5mlb7SbFDvgWX9FsSfTBSKyu5GzIG0Zu6n8=; b=rUX3u/OkJwlcuGKd0TBrHvbdOQLJgb+wd97vX6F8SdNZvk8gosnhyqJ6KXenwIqWFz /fywZyP4FgsPmJWKY8ZKIAa2Kb2lWzD41mC6uNYvMrtVZX3nzas09yASMLFGMnXfk6DL MAEL86ZjXafCFXfbPeaRx7XOxMlNzRVan5V3AQQWs3MZrCT/01y0Cl8APGtMpqWGidpa 0aOUQorJgpI3AIuyVMTLEkKj7UEiBsEhvnM9FegS1VDw6nsFf1AYItg1OOpkSKQfXT4U GDJ3sMKihDwAJwEkb8MBvcT4/Q11QfBOMBbob1goyMdBG5thULd0b0cD/ustAz8C8eSm 1VQA== X-Received: by 10.60.35.197 with SMTP id k5mr424566oej.138.1367398538328; Wed, 01 May 2013 01:55:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.154.130 with HTTP; Wed, 1 May 2013 01:55:18 -0700 (PDT) In-Reply-To: <51804FCF.8020204@sugarcrm.com> References: <6245ED6B-2BF7-47B7-80C0-D3B3D8E0B312@strojny.net> <51803086.6020002@sugarcrm.com> <518030FD.5030504@lerdorf.com> <51804FCF.8020204@sugarcrm.com> Date: Wed, 1 May 2013 10:55:18 +0200 Message-ID: To: Stas Malyshev Cc: Rasmus Lerdorf , Rasmus Schultz , PHP internals Content-Type: multipart/alternative; boundary=089e011847a624bfbb04dba448ec Subject: Re: [PHP-DEV] property de-referencing From: linepogl@gmail.com (Lazare Inepologlou) --089e011847a624bfbb04dba448ec Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, 2013/5/1 Stas Malyshev > Hi! > > > In C#, they had the intention to introduce the operator infoof(...) to > > get the reflection, not only of properties, but of virtually everything > > in the language. They abandoned the idea because it is really hard to d= o > > that for overloaded functions and they did not want to do all that work > > for a half baked feature: > > > > > http://blogs.msdn.com/b/ericlippert/archive/2009/05/21/in-foof-we-trust-a= -dialogue.aspx > > > > However, PHP does not have overloaded functions, which makes things > > significantly easier, so maybe it is worth examining the idea. > > PHP has functions that can be result of __call or arbitrary code that > implements fcall handler in an extension. What would be returned then? > -- > The result is the same with "new ReplectionMethod('foo','bar')". The added value is that it can be statically checked. Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel --089e011847a624bfbb04dba448ec--