Re: D array to c

2014-06-05 Thread Harpo via Digitalmars-d-learn
Thanks that was perfect. Also I am aware of the use of the 64bit numbers. Thank you for pointing it out though.

Re: D array to c

2014-06-05 Thread Harpo via Digitalmars-d-learn
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 w

Re: D array to c

2014-06-05 Thread Philpax via Digitalmars-d-learn
On Friday, 6 June 2014 at 03:40:41 UTC, Harpo wrote: Hello I need to pass a array in D to c. I have edited the code to the important parts. Normally in C I would just do this: void myFunction(int *array) { } Then pass it a array of whatever size. However I actually need the array to be in a s