Re: Batch files for running multiple DMD versions?

2009-02-18 Thread Lawrence Hemsley
This link will go to the download page of the junction utility. Has usage on it also. http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx Lawrence Hemsley wrote: I use batch files to switch between dmd 1 versions with the three different libraries: phobes, tango, and tangobos. Howev

Re: Batch files for running multiple DMD versions?

2009-02-18 Thread Lawrence Hemsley
I use batch files to switch between dmd 1 versions with the three different libraries: phobes, tango, and tangobos. However, you can use it to switch from dmd ver 1 and dmd ver 2 also. The batch file I use for tangobos is inserted below and the form of all the batch files are the same. 1. T

Re: Template function : use the array's one !

2009-02-18 Thread TSalm
TSalm Wrote: int compare(T:T[])(T[] o1,T[] o2) Change this line to: int compare(T:T[])(T o1, T o2) You are right. But despite this function, at compile time, an error is return : .\src\tsalm\tools\Generic.d(20): Error: cannot implicitly convert expression (o2 - o1) of type int[3u] t

Re: Template function : use the array's one !

2009-02-18 Thread John C
TSalm Wrote: > Hello, > > I'm searching to have a generic comparator function. > > I done this : > > /* CODE */ > import tango.io.Stdout; > > /*** > * Not for arrays > ***/ > int compare(T)(T o1,T o2) > { >static if ( is( T bar == class ) || is( T

CUDA with D?

2009-02-18 Thread Trass3r
Is there any tutorial or code for using CUDA with D?