HaxeFoundation / HaxeFoundation/hxcpp
[cppia] extern static property getter
- Dominant language
- C++
- Stars
- 330
- Forks
- 227
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 18
Description
cpp host code:
```haxe
class Host {
public static function main() {
trace(Test.foo); // bring the class into compilation
cpp.cppia.Host.runFile('bin/script.cppia');
}
}
```
cppia script code:
```haxe
class Script {
static function main() {
trace("Hello from script!");
trace(Test.foo);
}
}
```
and `Test.hx` file for both
```haxe
#if cppia
extern class Test {
static var foo(get, never):Int;
}
#else
class Test {
public static var foo(get, never):Int;
static function get_foo():Int return 42;
}
#end
```
will result in error:
```
Unknown function : Test_obj::get_foo(0)
Error : Unknown global:Test_obj::get_foo
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.