Hi!

Solvable in userland easily enough, but having a native money type,
especially when dealing with inter-currency conversions, then accuracy
is paramount.

Adding native primitive type is expensive - there's a lot of places in engine and various functions that have to deal with primitive types, and they all need to be updated. However, adding object type can be OK, provided you are ready to forgo $a+$b for $a->add($b) etc. One might start with class library in PHP and go for extension later. I'm sure there are some code around doing this already :)
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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

Reply via email to