Re: Ranges help

2011-10-14 Thread Christophe
Xinok , dans le message (digitalmars.D.learn:30054), a écrit : > This is in relation to my sorting algorithm. This is what I need to > accomplish with ranges in the most efficient way possible: > > 1. Merge sort - This involves copying elements to a temporary buffer, > which can simply be an arr

Re: Only one signal per object?

2011-10-14 Thread Johannes Pfau
Andrej Mitrovic wrote: >Johannes Pfau made an updated version of std.signals, I think he's >hosting it somewhere on his dropbox, you'll have to ask him. http://dl.dropbox.com/u/24218791/d/src/signals.html https://gist.github.com/1194497 It should work well as a replacement for the current std.sig

Re: Ranges help

2011-10-14 Thread Xinok
Thanks. I'll run a benchmark with swapRanges, see how it compares to my own code. But it would be better if I coded the merge function myself, since I can do it in-place using very little memory.

overload of array operations

2011-10-14 Thread Jay Norwood
Is it possible to overload array operations

Re: overload of array operations

2011-10-14 Thread Jonathan M Davis
On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > Is it possible to overload array operations Please be more specific. Are you asking whether a struct or class can overload the indexing and slicing operators? If so, the answer is yes. http://d-programming-language.org/operatoroverloading

Re: does "private import" means "static import" to other modules importing it?

2011-10-14 Thread Andrej Mitrovic
On 10/14/11, Jesse Phillips wrote: > On Thu, 13 Oct 2011 16:21:56 +0200, Andrej Mitrovic wrote: > >> You can always qualify the full name unless you're importing a specific >> symbol, e.g.: > > No, I'm pretty sure it is just a bug, and one that was recently discussed > too. Private imports should

Re: overload of array operations

2011-10-14 Thread Jay Norwood
Jonathan M Davis Wrote: > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > Is it possible to overload array operations > > Please be more specific. Are you asking whether a struct or class can > overload > the indexing and slicing operators? If so, the answer is yes. > > http://d-pr

Re: overload of array operations

2011-10-14 Thread Jay Norwood
Jonathan M Davis Wrote: > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > Is it possible to overload array operations > > Please be more specific. Are you asking whether a struct or class can > overload > the indexing and slicing operators? If so, the answer is yes. > > http://d-pr

Re: overload of array operations

2011-10-14 Thread Jonathan M Davis
On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: > Jonathan M Davis Wrote: > > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > > Is it possible to overload array operations > > > > Please be more specific. Are you asking whether a struct or class can > > overload the indexing an

Re: Unable to get Phobos working on Ubuntu x64 (Oneiric)

2011-10-14 Thread Matt Soucy
I know this is slightly old, but I didn't see a solution - I decided, in a fit of madness, to attempt a Day 1 upgrade from Natty to Oneiric. It...didn't exactly work, and I ended up with this same problem. It's apparently not a problem with x64, since I'm using x86 Ubuntu. (I grabbed the wrong di

Re: Unable to get Phobos working on Ubuntu x64 (Oneiric)

2011-10-14 Thread Justin Whear
I tore my hair out over this before I examined the gcc line run by dmd, and found that -lphobos2 was being dropped in after -lrt. The simple fix is to modify your dmd.conf (build something with dmd -v to see where this is) such that "-L-lphobos2" is added BEFORE "-L-lrt". Justin Matt Soucy w

Re: overload of array operations

2011-10-14 Thread Jay Norwood
Jonathan M Davis Wrote: > On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: > > Jonathan M Davis Wrote: > > > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > > > Is it possible to overload array operations > > > > > > Please be more specific. Are you asking whether a struct or c

Re: overload of array operations

2011-10-14 Thread Jonathan M Davis
On Friday, October 14, 2011 16:12 Jay Norwood wrote: > Jonathan M Davis Wrote: > > On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: > > > Jonathan M Davis Wrote: > > > > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > > > > Is it possible to overload array operations > > > > > >

FastCGI binding or implementation?

2011-10-14 Thread Jeremy Sandell
Hello! Does anyone know if there's a D2 binding or implementation for fastcgi as of yet? Thanks! Jeremy Sandell

Re: FastCGI binding or implementation?

2011-10-14 Thread Adam D. Ruppe
On Fri, Oct 14, 2011 at 09:14:19PM -0400, Jeremy Sandell wrote: >Does anyone know if there's a D2 binding or implementation for fastcgi as > of yet? My cgi.d wraps the C library for fast cgi https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff compile with -ver