guilhermebla...@gmail.com wrote on 27/11/2014 03:47:
I worked on an implementation of a somehow controversial concept that
exists in hack and C#: abstract final classes.

https://wiki.php.net/rfc/abstract_final_class

The explanation of what exactly has been implemented could perhaps be expanded:

> Change language scanner to accept abstract final class constructor, and subsequently restricting to only static members.

Does this mean that the following will be flagged as invalid? If so, what error message will be raised?

abstract final class Foo {
    abstract public function doTheImpossible();
}

This class is technically valid as an abstract class, but the addition of the "final" keyword makes the abstract method declaration completely meaningless, since it can never be implemented.

Regards,
--
Rowan Collins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to