dlist for phobos

2011-01-26 Thread %u
Are there plans for including a double linked list in phobos? Maybe one backed by an array like .NET's List or Java's ArrayList. If so, when? Thanks

Re: dlist for phobos

2011-01-26 Thread Jonathan M Davis
On Wednesday, January 26, 2011 15:34:05 %u wrote: > Are there plans for including a double linked list in phobos? Maybe > one backed by an array like .NET's List or Java's ArrayList. > > If so, when? Array is the equivalent of Java's ArrayList. It's Java's LinkedList which is a doubly-linked lis

Re: dlist for phobos

2011-01-26 Thread Andrei Alexandrescu
On 1/26/11 6:20 PM, Jonathan M Davis wrote: On Wednesday, January 26, 2011 15:34:05 %u wrote: Are there plans for including a double linked list in phobos? Maybe one backed by an array like .NET's List or Java's ArrayList. If so, when? Array is the equivalent of Java's ArrayList. It's Java's

Re: dlist for phobos

2011-01-26 Thread Steven Schveighoffer
On Wed, 26 Jan 2011 18:34:05 -0500, %u wrote: Are there plans for including a double linked list in phobos? Maybe one backed by an array like .NET's List or Java's ArrayList. If so, when? http://www.dsource.org/projects/dcollections LinkList there is doubly-linked. Sorry, I don't have onli

Re: dlist for phobos

2011-01-27 Thread bearophile
Andrei: > I'm also undecided on what to do about sealing, and again language > improvements (preventing escapes of references) could lead to improved > designs. Language improvements need to be understood, desired, designed, and then implemented and debugged, so what kind of syntax and semanti

Re: dlist for phobos

2011-01-27 Thread Andrei Alexandrescu
On 1/27/11 3:25 AM, bearophile wrote: Andrei: I'm also undecided on what to do about sealing, and again language improvements (preventing escapes of references) could lead to improved designs. Language improvements need to be understood, desired, designed, and then implemented and debugged,

Re: dlist for phobos

2011-01-27 Thread Tomek Sowiński
Andrei Alexandrescu napisał: > ref returns should be guaranteed to never escape. Should meaning they're not guaranteed now? I'm curious in what scenarios they escape. -- Tomek

Re: dlist for phobos

2011-01-27 Thread Andrei Alexandrescu
On 1/27/11 4:48 PM, Tomek Sowiński wrote: Andrei Alexandrescu napisał: ref returns should be guaranteed to never escape. Should meaning they're not guaranteed now? I'm curious in what scenarios they escape. Any function can take the address of a reference (either a ref parameter or the re

Re: dlist for phobos

2011-01-27 Thread Tomek Sowiński
Andrei Alexandrescu napisał: > On 1/27/11 4:48 PM, Tomek Sowiński wrote: > > Andrei Alexandrescu napisał: > > > >> ref returns should be guaranteed to never escape. > > > > Should meaning they're not guaranteed now? I'm curious in what scenarios > > they escape. > > Any function can take the add

Re: dlist for phobos

2011-01-27 Thread Michel Fortin
On 2011-01-27 17:52:27 -0500, Andrei Alexandrescu said: On 1/27/11 4:48 PM, Tomek Sowiński wrote: Andrei Alexandrescu napisał: ref returns should be guaranteed to never escape. Should meaning they're not guaranteed now? I'm curious in what scenarios they escape. Any function can take t