printf, writeln, writefln

Ali Çehreli acehreli at yahoo.com
Thu Dec 8 17:39:58 UTC 2022


On 12/8/22 08:21, Salih Dincer wrote:

 > void stringCopy(Chars)(string source,
 >                      ref Chars target)

 >    sample.stringCopy = cTxt;  // disappeared ? char

Nothing disappeared on my system. (?)

Going off-topic, I find the expression above extremely confusing. I am 
used to assignment expression changing the value of the left hand side, 
but that expression changes cTxt. Very confusing...

Such obfuscations make it very hard for me to understand what the code 
is trying to demonstrate.

Ali



More information about the Digitalmars-d-learn mailing list