Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52502 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10868 invoked from network); 23 May 2011 01:24:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2011 01:24:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:59006] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/92-23260-A37B9DD4 for ; Sun, 22 May 2011 21:24:11 -0400 Received: by qyk32 with SMTP id 32so621532qyk.8 for ; Sun, 22 May 2011 18:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=8o/JAO+dqlkaZP4xFLGAVesPi3z285DuSigs76Tu7X0=; b=KsOCRQMxuEyVev20hd5CFcH1k8xx+7c/Mep2RwrtRsol1TBjGGO4V/XOhxXn0OS8S0 wB377RV0KnxPzaa4qoPHZfA0DTBMCmH2jYBdiD1KwBX4TFDNXVyagkfucoh7tOs9bTIo nTp1XBAdwmGOLYERbNDutTwq0JEROx7phk96E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=S8IZbnvqSb1AcVyGPFrxJlZUfWr2/pSlHVyxXtQtbGdyNgl2AlykrNgY04sDkxNEt9 ZsSYWEeRs2dzShsZOkX2VoXeWFUMCMuQ0ePrNle4MzwxCGge625QM82EL1xo8yyHEI5B zm2AhemeAj7Hb3nagfyUmfVkUm9G6nBvSGCMA= Received: by 10.229.69.197 with SMTP id a5mr1218930qcj.273.1306113847158; Sun, 22 May 2011 18:24:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.248.7 with HTTP; Sun, 22 May 2011 18:23:47 -0700 (PDT) In-Reply-To: References: Date: Sun, 22 May 2011 22:23:47 -0300 Message-ID: To: "Matthew Weier O'Phinney" Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6541d36e568ef04a3e753cc Subject: Re: [PHP-DEV] Constructor object instance dereferentiation From: felipensp@gmail.com (Felipe Pena) --0016e6541d36e568ef04a3e753cc Content-Type: text/plain; charset=UTF-8 Hi, 2011/5/22 Matthew Weier O'Phinney > One thing not on the RFC that I'm curious about: if the class defines > __invoke(), would the following work? > > new MyClass()(); > > That would be particularly useful for implementing helper systems, which > are quite often one-off use cases. > > No, such feature was not planned in the RFC, the patch doesn't change the grammar to allow it. -- Regards, Felipe Pena --0016e6541d36e568ef04a3e753cc--