Why an abstract pointer cannot be used as value in an associate array?

Trass3r un at known.com
Thu Sep 29 04:28:30 PDT 2011


Am 29.09.2011, 06:51 Uhr, schrieb Cheng Wei <rivercheng at gmail.com>:

> extern(C) {
>     struct ab;
> }
>
> ab*[int] map;
>
> void main() {
>     map.clear();
> }
>
>
> Cannot be compiled. Why?
>
> Thanks.

Just use void* for opaque pointers in D.


More information about the Digitalmars-d-learn mailing list