[Opensim-dev] Question about OSSL type conversion

Eric eschwe at gmail.com
Sat Apr 19 21:35:00 UTC 2008


Hi everyone,

I've noticed that numerous type conversions in OSSL are not functioning.
Typecasting such as:

float f = 1.234;
string s = (string)f;
f = (float)s;

generates a CS0030 compiler error (cannot convert from 'string' to
'double').  It seems that there are conversion methods from numeric and
complex (such as vector) types to string, but not the other way around.

Is this a known issue?  Is there a way to perform these conversions aside
from typecasting?

Thanks!
-Eric (Typhoon)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080419/300bcd07/attachment-0001.html>


More information about the Opensim-dev mailing list