Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16974 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93505 invoked by uid 1010); 28 Jun 2005 23:01:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93456 invoked from network); 28 Jun 2005 23:01:03 -0000 Received: from unknown (HELO comcast.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2005 23:01:03 -0000 Received: from ([127.0.0.1:13201]) by pb1.pair.com (ecelerity 1.2 r(5656M)) with ECSTREAM id 89/B9-00424-7A6D1C24 for ; Tue, 28 Jun 2005 19:00:55 -0400 X-Host-Fingerprint: 204.127.198.35 rwcrmhc11.comcast.net NetCache Data OnTap 5.x Received: from ([204.127.198.35:37107] helo=rwcrmhc11.comcast.net) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 29/49-00424-714D1C24 for ; Tue, 28 Jun 2005 18:49:59 -0400 Received: from [192.168.1.135] (pcp09278536pcs.eatntn01.nj.comcast.net[69.141.229.108]) by comcast.net (rwcrmhc11) with SMTP id <200506282249540130034c79e>; Tue, 28 Jun 2005 22:49:55 +0000 To: Nicolas =?ISO-8859-1?Q?B=E9rard?= Nault Cc: Jesse Binam , internals@lists.php.net In-Reply-To: <30bd80240506281536c80be36@mail.gmail.com> References: <65530d4805062723261ef6c7be@mail.gmail.com> <30bd80240506281536c80be36@mail.gmail.com> Content-Type: multipart/alternative; boundary="=-SFAKN87PG2rabeu6TKoq" Date: Tue, 28 Jun 2005 18:51:00 -0400 Message-ID: <1119999060.13690.118.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Subject: Re: [PHP-DEV] Object execution From: ajb732@comcast.net (Al Baker) --=-SFAKN87PG2rabeu6TKoq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think it means being able to scope the default execution block for a script. Normally script goes from top-to-bottom dipping into each include and compiles and executes them in a linear fashion. Perhaps having a main would hold off on the execution part until you got to the main() and from there, only execute that which is used inside that block and then exit. The "main method of a class" idea I always felt was unnatural in Java. A C/C++ style main() as I describe above could be interesting. I wonder if it has any compelling benefits to it, or rather what would the advantage be over how PHP is executed today? Al On Tue, 2005-06-28 at 18:36 -0400, Nicolas Bérard Nault wrote: > What do you mean by the script being a class ? > > On 6/28/05, Jesse Binam wrote: > > Any thoughts on the idea of a magic method called "__main()" or > > "__exec()" that would be called if the script being executed is a > > class. > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > Nicolas Bérard Nault (nicobn@gmail.com) > "Maybe nature is fundamentally ugly, chaotic and complicated. But if > it's like that, then I want out." -- Steven Weinberg (prix Nobel de > physique, 1979). > --=-SFAKN87PG2rabeu6TKoq--