leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00257
[Bug 1393017] Re: error:Field not supported in union.
Decoding floats from chars: This is currently supported using unions,
for example
union
{
float f;
char c[4];
} u;
memcpy(u.c, buffer, 4);
float result = u.f;
Dynamic NULL checks: This is already supported in some cases at no cost,
but not always
Dynamic checks for correct assignments: This is actually a good idea and
we will consider implementing this. Moreover, in the future the
Object.freeze API should make it possible to let the browser do such
checks at no cost.
Please note that there is a custom cheerp warning which is emitted on
every unsafe type cast. It's a bit too verbose at the moment, but it
should be helpful in finding out what code might be problematic.
--
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Cheerp.
https://bugs.launchpad.net/bugs/1393017
Title:
error:Field not supported in union.
Status in Cheerp: C++ for the Web:
Invalid
Bug description:
is the error means, cheerp does not support union?
To manage notifications about this bug go to:
https://bugs.launchpad.net/cheerp/+bug/1393017/+subscriptions
References