Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
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

Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 18:38:45 UTC, thedeemon wrote: let (hello, world)[] = arr; i think what Andrea Fontana is talking is the other way around your solution allows let (hello, world)[] = ["hi"]; Andrea Fontana(s allows let (hello, world) = ["hi", "there", "!"];

Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 10:28:53 UTC, thedeemon wrote: On Sunday, 22 November 2015 at 18:47:34 UTC, visitor wrote: What is the reason for using pointers (alias pointerOf(T) = T* etc...) it works without ! what am i missing ? What and how exactly works without? My original solution

Re: let (x,y) = ...

2015-11-22 Thread visitor via Digitalmars-d-announce
hello, Learning here, hope i don"t excavate unnecessarily an old post What is the reason for using pointers (alias pointerOf(T) = T* etc...) it works without ! what am i missing ? Thanks

Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 20:10:49 UTC, visitor wrote: Andrea Fontana(s allows let (hello, world) = ["hi", "there", "!"]; of course in your version let (hello, world)[] = ["hi", "there", "!"] works but for consistency with range, i think Fontana's note is relevant

Re: let (x,y) = ...

2015-11-24 Thread visitor via Digitalmars-d-announce
On Tuesday, 24 November 2015 at 05:45:55 UTC, thedeemon wrote: Well, I believe it's a matter of taste. By allowing different number of elements there you allow more errors to sink in without gaining anything at all. You lose the choice between strict and loose operators, erase the difference.

Re: Updated LDC snap package with improved Ubuntu 14.04 support

2017-02-19 Thread visitor via Digitalmars-d-announce
On Sunday, 19 February 2017 at 11:24:17 UTC, Joseph Rushton Wakeling wrote: Revision 4 of the ldc2 snap package is now available in the 'edge' channel of the snap store. Works for me on ubuntu 16.04 (llvm-3.8), Thanks :-) Not heavily tested, just to let you know for some feedback on your