D array to c

Harpo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 5 20:46:12 PDT 2014


sorry thats:


struct examplestruct {int* array;}
int numar[50];
examplestruct parameters;
parameters.array = numuar;

When I do that I get type conflictions.  Error: cannot implicitly
convert expression (numar) of type int[50] to int*...
I am not sure what setup I need to have here. Anyone know whats
up?

(That int / long bit was just a typo when I was editing to just 
the relevent parts.)


More information about the Digitalmars-d-learn mailing list