Re: Re: Clarification on the Enum language structure

From: Date: Wed, 23 Feb 2011 07:52:20 +0000
Subject: Re: Re: Clarification on the Enum language structure
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-51505@lists.php.net to get a copy of this message
On Wed, Feb 23, 2011 at 4:29 AM, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > 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) -- Alexey Zakhlestin, http://twitter.com/jimi_dini http://www.milkfarmsoft.com/

« previous php.internals (#51505) next »