On Wed, 09 Feb 2005, Ante Drnasin wrote:
Hi Marcus and thanx for the explanation....
And I agree that PHP is very loose which is his strong part but exactly because of that I think it would be nice if the end-user can have the ability to work with primitives like they were objects...
Why?
- Andrei
Why not?
Because it would be a great asset to the new OOP model in PHP 5....
Because the new OOP model is great and I don't think it shouldn't stop there....
Because it would be great if the choice is left to the end user...
We already have OOP freaks (including this one) and I just love the idea to have something like
function Add($a, $b) { return new Float($a+$b); }
print(Add(new Integer(5), new Float(5.7)));
just my $.02
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php