Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67229 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63729 invoked from network); 30 Apr 2013 23:12:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2013 23:12:19 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.99 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.99 smtp99.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.99] ([108.166.43.99:39785] helo=smtp99.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/3C-18873-2DF40815 for ; Tue, 30 Apr 2013 19:12:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id EC0201B0271; Tue, 30 Apr 2013 19:12:15 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp5.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 8A96F1B0253; Tue, 30 Apr 2013 19:12:15 -0400 (EDT) Message-ID: <51804FCF.8020204@sugarcrm.com> Date: Tue, 30 Apr 2013 16:12:15 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Lazare Inepologlou CC: Rasmus Lerdorf , Rasmus Schultz , PHP internals References: <6245ED6B-2BF7-47B7-80C0-D3B3D8E0B312@strojny.net> <51803086.6020002@sugarcrm.com> <518030FD.5030504@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] property de-referencing From: smalyshev@sugarcrm.com (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 do > 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? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227