On Fri, 2008-01-04 at 17:46 +0000, Alain Williams wrote: > On Fri, Jan 04, 2008 at 12:11:41PM -0500, Sam Barrow wrote: > > > Exactly. I just added the "mixed" type hint which is the same as using > > no type hint. The new patch is attached. > > > > Extra keywords (real, long, double, etc.) have been taken out. The > > available type hints are now mixed, int, float, bool, string, scalar, > > num, resource, and object. And of course array and class type hints > > still work. > > I notice that you use strcasecmp() to compare type name. I thought that we > were moving > away from case independence, ie the type should be 'int' or perhaps 'INT' - > whatever > we agree on it should have a defined capitalisation.
Oh ok. Well I assumed it would be case sensitive like variables but you do have a point, many keywords in PHP are not case sensitive. This is something that can be easily changed depending on what people want. > Just an off the wall thought ... if the type is not a known scalar type or > class, then check to see if the > word is a constant ... could be interesting .... aka C's typedefs. > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php