Can we use "ImportC" used yet?
data pulverizer
data.pulverizer at gmail.com
Sat Oct 23 16:39:08 UTC 2021
On Friday, 22 October 2021 at 16:16:22 UTC, Dave P. wrote:
>
> I think you ran into this
> [issue](https://issues.dlang.org/show_bug.cgi?id=22404). The
> bug fix isn’t part of a released dmd yet.
Yes that's the same error. When I try this:
```
...
this(R_xlen_t n)
{
SEXPTYPE _real_ = SEXPTYPE.REALSXP;
_data = protect(allocVector(_real_, n));
unprotect(1);
}
...
```
I get a slightly more interesting error message:
```
types.d(43): Error: cannot implicitly convert expression `14` of
type `int` to `__tag28`
```
So it's not recognising `REALSXP` as an `SEXPTYPE`, it's as if it
is treating `SEXPTYPE` like a `struct` rather than an `enum`.
Also I was wandering, how long will it take release a fix for
ImportC? I am aware that it is a new feature, the reason I ask is
not to try to rush anyone but to plan my time better.
Many thanks
More information about the Digitalmars-d-learn
mailing list