There's actually already a circular buffer implemented in vibe.d, and if I remember right it's not dependent on anything from vibe.
On 12/20/13, Frustrated <c1514...@drdrb.com> wrote: > I'm in need of a circular buffer/array. I am using > std.container.array to avoid the GC. I suppose I could copy and > modify the code but is there any easier way? It looks like it is > defined as templates so could I somehow hijack the code and > modify only what is needed rather than duplicate a lot of stuff? > (or maybe someone could just add it to the library... circular > arrays are useful ya know ;) > >