2008/5/3 Stanislav Malyshev <[EMAIL PROTECTED]>: > 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] >
Is it not possible to overload operators? Though this would probably even more work to do. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php