strange compiler error

Michael pr at m1xa.com
Wed Feb 27 13:20:03 PST 2013


> Sorry, this doesn't answer your question but in general, if you 
> are not going to pass the parameter to another function that 
> requires a 'string', then it is better to define that function 
> parameter as 'const char[]':
>
> Tuple!(string[], FnType) parse(const char[] source)
> {
>     // ...
> }
>
> That way you wouldn't need to call .idup on a mutable argument.
>
> Ali

Oh, thank you very much ;)


More information about the Digitalmars-d mailing list