--- Comment #19 from Kenji Hara <> 2011-07-24 11:43:28 PDT 
(In reply to comment #18)
> Are you sure you want to use that syntax?

Yes. The syntax is usuful for tuple expansion and non-auto binding:
const (x, y) = tuple(10, 20);
// x and y are now const

It is more usuful for many element tuple:
(const x, const y, const z, const v, const w, const m, const n) = ... ;
// same as:
// const (x, y, z, v, w, m, n) = ... ;

> A syntax more similar to the Python one is:
> auto (x1,) = [10];

In D, Isolated comma is almost invalid except enum declaration, I think.
D is not Python.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to