how to work this around.

```d
__gshared const TEST = import(`onlineapp.d`);
extern(C) void main(){
        __gshared  bin_ptr = TEST.ptr;
}
```

```sh
dmd2 -betterC -J. onlineapp.d
onlineapp.d(3): Error: cannot use non-constant CTFE pointer in an initializer `cast(immutable(char)*)TEST`

```

Reply via email to