digitalmars.D.learn - (a,b,c) syntax
- Andrea Fontana <nospam example.com> Jul 11 2012
- Timon Gehr <timon.gehr gmx.ch> Jul 11 2012
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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>