Array of struct pointers error

bearophile bearophileHUGS at lycos.com
Wed Feb 26 03:21:36 PST 2014


Szymon Gatner:

> That would be just it:
>
> import dchip.all;
>
> void main()
> {
>   cpBody* bodies[];
>   auto b = cpBodyNew(0, 0);
>   bodies ~= b;
> }
>
> where dchip is pulled using dub. As described earlier, wrapping 
> cpBody* in another struct or Tuple works.

Now you have to remove all imports from the code :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list