Re: GMP object and is_scalar()
| From: | Stas Malyshev | Date: | Mon, 30 Dec 2013 22:03:51 +0000 |
| Subject: | Re: GMP object and is_scalar() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70936@lists.php.net to get a copy of this message | ||
Hi!
> Only classes that should be evaluated as scalar should implement this
> magic method.
We already have type convertors. "scalar" is not a type, it's a group of
types. I don't think it makes sense to convert something to an abstract
scalar - it should be specific scalar type.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227