let (x,y) = ...
visitor via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Nov 23 10:06:17 PST 2015
On Monday, 23 November 2015 at 16:58:43 UTC, Andrea Fontana wrote:
> Nice. Why first enforce is "==" rather than ">=" ? This
> prevents something like:
>
> auto arr = ["hello", "world", "!"];
> string hello;
> string world;
>
> let (hello, world) = arr;
note that this is thedeemon's work ! (sorry couldn't resist)
anyway, yes indeed !
More information about the Digitalmars-d-announce
mailing list