digitalmars.D.learn - (a,b,c) syntax
- Andrea Fontana (3/3) Jul 11 2012 Why this code print "five" ?
- Timon Gehr (3/6) Jul 11 2012 , is the comma operator inherited from C.
Why this code print "five" ?
writeln(("One", 10, "Five"));
What does ( ... , ... , ...) means?
Jul 11 2012
On 07/11/2012 02:44 PM, Andrea Fontana wrote:
Why this code print "five" ?
writeln(("One", 10, "Five"));
What does ( ... , ... , ...) means?
, is the comma operator inherited from C.
a,b means: execute a first, then b, and the result is b.
Jul 11 2012








Timon Gehr <timon.gehr gmx.ch>