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?