foreach, is and pointer

helxi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 25 23:52:01 PDT 2017


What's the difference between
1.
string x = "abcd";
     foreach(character; x)
         write(character);

and

string x = "abcd";
     foreach(character; x[0..$])
         write(character);

2. is and ==

3. pointer and address and reference?


More information about the Digitalmars-d-learn mailing list