single loop copy in D

psychoticRabbit meagain at meagain.com
Fri Mar 2 09:44:20 UTC 2018


trying to do this C code, in D, but getting error:
"Error: assignment cannot be used as a condition, perhaps `==` 
was meant?"

any help much appreciated:

------
while ((*dst++ = *src++)) {}
------


More information about the Digitalmars-d-learn mailing list