Re: LinkedList and Deque API in DCollections

2012-06-25 Thread Steven Schveighoffer
On Mon, 25 Jun 2012 09:44:12 -0400, Steven Schveighoffer wrote: No, if you want to use those asserts, build dcollections with debug flag. Should have said "without release flag", you don't need to build with debug flag. -Steve

Re: LinkedList and Deque API in DCollections

2012-06-25 Thread Steven Schveighoffer
On Thu, 21 Jun 2012 10:24:57 -0400, d coder wrote: Did you try : list.insert(list.begin, value); Thanks. But I believe append and prepend are too common use-cases to be ignored. Also, I see that "assert(some-expression)" has been used at a lot of places in the code of the libraries. Sin

Re: LinkedList and Deque API in DCollections

2012-06-25 Thread Steven Schveighoffer
On Thu, 21 Jun 2012 08:53:33 -0400, d coder wrote: Greetings I do not know if this email belongs to this list or not. It is about a package available at dsource. Let me know if I should be posting such emails elsewhere. This list is fine, you can also create tickets for the TRAC instance for

Re: LinkedList and Deque API in DCollections

2012-06-21 Thread d coder
> > > auto append(T, V)(ref T t, V value) > { > return t.insert(t.begin, value); > } > > should do the trick. > (you may add a guard to make sure T is a container) > Thanks Christophe. I think you are relying on UFCS here. So cool. Regards - Puneet

Re: LinkedList and Deque API in DCollections

2012-06-21 Thread Christophe Travert
d coder , dans le message (digitalmars.D:170396), a écrit : > --e0cb4efe2a2821373604c2fc4a15 > Content-Type: text/plain; charset=ISO-8859-1 > >> >> >> Did you try : list.insert(list.begin, value); >> > > Thanks. But I believe append and prepend are too common use-cases to be > ignored. > > Also,

Re: LinkedList and Deque API in DCollections

2012-06-21 Thread d coder
> Also, I see that "assert(some-expression)" has been used at a lot of > places in the code of the libraries. Since these libraries are built with > -release option, should these assert statements not be replaced by > "enforce"? Ok I think asserts are fine since these would be taken out and the l

Re: LinkedList and Deque API in DCollections

2012-06-21 Thread d coder
> > > Did you try : list.insert(list.begin, value); > Thanks. But I believe append and prepend are too common use-cases to be ignored. Also, I see that "assert(some-expression)" has been used at a lot of places in the code of the libraries. Since these libraries are built with -release option, sh

Re: LinkedList and Deque API in DCollections

2012-06-21 Thread Christophe Travert
d coder , dans le message (digitalmars.D:170392), a écrit : > --f46d04083de73dc5ab04c2fb032c > Content-Type: text/plain; charset=ISO-8859-1 > > Greetings > > I do not know if this email belongs to this list or not. It is about a > package available at dsource. Let me know if I should be posting s

LinkedList and Deque API in DCollections

2012-06-21 Thread d coder
Greetings I do not know if this email belongs to this list or not. It is about a package available at dsource. Let me know if I should be posting such emails elsewhere. I need an implementation of Doubly Linked list and Deque. Since the std.container library does not support these containers yet,