Hi!

public function Killjoy(MyEnum $x)

What would be the purpose of such code? What would it do if 5 is passed as
$x?

IMHO, it should fail (unless 5 is the value explicitly mentioned in
MyEnum definition)

So before calling this method you better check it's argument against all possible enum values, otherwise it's fatal error, right? Doesn't seem as very helpful interface to me.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

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

Reply via email to