Comments (5)
We should not support this, it is illegal :)
Le 2 avr. 2014 23:01, "Gama11" [email protected] a écrit :
var array = new Array();var intArray:Array = cast array;trace(array == intArray);
Output:
cpp: false
flash: true
js: true—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44
.
from hxcpp.
@delahee Well, it's definitely inconsistent behaviour, hurting cross-platform compatibility. @Simn assured me this is a bug.
from hxcpp.
Sorry, I misread the example on IRC. This is definitely illegal due to variance. Closing unless a valid version can be found.
from hxcpp.
Are you allowed to cast the other way?
from hxcpp.
Should be illegal too bro. Cast is about trans typing not memory conversion
even if some languages abuse it.
Le 2 avr. 2014 23:06, "Joshua Granick" [email protected] a écrit :
Are you allowed to cast the other way?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-39383690
.
from hxcpp.
Related Issues (20)
- Allow using system sqlite?
- Linking issue on HXCPP_MINGW under MSYS2 HOT 2
- Cannot have an array of pointers HOT 2
- hxcpp does not quote -I paths with spaces
- Explicitly allow c++14
- Abstract wrapping extern cannot find the extern
- thread count discrepancy in extern-use test
- @:generic ignores @:unreflective HOT 5
- Reflect.field(String, "fromCharCode") doesnt work
- Calling a method from an array of classes causes "this" to be null HOT 6
- Errors where function named Array returns Generic of Array
- Mac CI takes an age to run HOT 7
- HXCPP_CXX_STANDARD Define
- Conflicts when static linking a library that uses mbedtls HOT 2
- Unable to compile after reinstalling Visual Studio HOT 2
- Struct<NativeEnum, EnumHandler> does not work in switch expression
- bus error from unaligned access in threads on 64bit raspberry pi.
- The interface did not perform a null check. HOT 1
- hx::MarkObjectAlloc Android crash. HOT 8
- Compilation makes Windows Defender think it's a virus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hxcpp.