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 ther
For example...
--- example.php ---
--- end example.php ---
`php -q example.php` would output "Hello World!"
With this you could potentially eliminate the global scope if you
chose to. For the record, by no means do I want PHP to be Java. I just
think this feature would be a nice finishing touch
What do you mean by the script being a class ?
On 6/28/05, Jesse Binam <[EMAIL PROTECTED]> 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
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