|
From: Jost B. <jos...@ya...> - 2005-11-12 10:34:24
|
Hi Jonathan,
I think this is a more general problem. My suggested
workaround doesn't even work for custom number types
which might not have an appropriate constructor.
Representing a complex number as a php value isn't
possible anyway.
For version 3.0 we have the opportunity to change this
behaviour and remove auto-conversion of return values
completely. This would allow users to work with java
numbers or java strings in a natural way, for example:
$str = new java("java.lang.String", ${123}";
$str = $str->substring(2);
$str = $str->substring($str->length()-1);
If users want to convert a java object into a php
object they can always use the cast operator, for
example:
echo strchr((string)$str, "2");
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|