Re: Multi-Method Dispatch in PHP 5.1?
| From: | Andi Gutmans | Date: | Wed, 21 Apr 2004 09:50:46 +0000 |
| Subject: | Re: Multi-Method Dispatch in PHP 5.1? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9446@lists.php.net to get a copy of this message | ||
At 03:29 PM 4/20/2004 -0400, George Schlossnagle wrote:
On Apr 20, 2004, at 3:18 PM, Marcus Boerger wrote:I don't have a problem with array type hinting but I want to roll RC2. I suggest we look at Marcus' patch after RC2 and see if it's small enough to allow the inclusion before 5.0.0. AndiAndi/Zeev, Thoughts on allowing array typehinting?The problem with this is that that integer may well be a string when you look at it. There's no good way to do this past discriminating between scalar, array and object (by type, of course). I personally think that that is fine (adding an array typehint would be nice).Somewhere at my server should be a patch for "array". For some reason i was too lazy to ask for that to commit again before RC1. I you still want this just ask Andi/Zeev again.