No subject


Sun Jan 14 16:13:07 PST 2007


"String literals already have a 0 appended to them, so can be used directly:

printf("the string is '%s'\n", "string literal");"

That gives an access violation, because "string literal" is a dynamic array. 
Probably changed with dmd 0.177.  Somehow I wish D would make an exception for
string literals and C functions.  It's too easy to get this wrong when it works
for fixed arguments, just not for variable ones.


-- 



More information about the Digitalmars-d-bugs mailing list