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)
- wasm is not working with hxcpp HOT 2
- NME Android build error
- String::create(wchar_t* ...) is broken on non Windows systems
- Adding support for vs 2022
- HXCPP_API_LEVEL 300 Cleanup HOT 1
- GC Pinning HOT 4
- How to properly shutdown a hxcpp DLL?
- Casts inserted and I don't know why HOT 2
- FreeBSD, Could not find include file "toolchain/null-toolchain.xml" HOT 1
- Strange CPP error HOT 2
- Pointer_obj::ofArray changes length of empty array from 0 to 1
- 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
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.