Open MPI with D

Jude Young 10equals2 at gmail.com
Fri Nov 25 01:35:54 PST 2011


On Fri 25 Nov 2011 03:12:34 AM CST, bearophile wrote:
> Jude Young:
>
>> Is there an easy way to turn D style (string[] args) into C style?
>
> Maybe something like this (not tested)?
> const int argc = args.length;
> const char** argv = array(map!toStringz(args)).ptr;
>
> Bye,
> bearophile
>

...where is template map?
nvm, found it. algorithm..

works, with minor alteration.
int argc = args.length;
const char** argv = array(map!toStringz(args)).ptr;

Thanks!

did I highjack an existing thread, or is my program just being stupid?


More information about the Digitalmars-d mailing list