Re: Making a DLL with a static library dependency

2009-12-17 Thread Phil Deets
On Tue, 15 Dec 2009 00:56:12 -0500, Phil Deets wrote: (D 2.033) I'm porting a DLL to D. The DLL depends on a static library, but when I put the library name on the command-line, dmd does not output any DLL file. If I remove the library name from the command-line, dmd gives linker errors an

Re: Making a DLL with a static library dependency

2009-12-17 Thread Phil Deets
On Thu, 17 Dec 2009 08:32:41 -0500, Phil Deets wrote: On Tue, 15 Dec 2009 00:56:12 -0500, Phil Deets wrote: (D 2.033) I'm porting a DLL to D. The DLL depends on a static library, but when I put the library name on the command-line, dmd does not output any DLL file. If I remove the libra

Re: Tempated class instantiation

2009-12-17 Thread Mike L.
Rory McGuire Wrote: > Mike L. wrote: > > > Simen kjaeraas Wrote: > > > >> On Wed, 16 Dec 2009 07:25:39 +0100, Mike L. > >> wrote: > >> > >> > I'm making a class template that only works with strings, so I thought > >> > it'd be good to instantiate each template with char, wchar, and dcha

Re: Immutable & circular imports

2009-12-17 Thread Tomek Sowiński
Dnia 17-12-2009 o 01:14:53 grauzone napisał(a): There are a _lot_ of circular dependency bugs, and there are a lot of immutable related bugs. Combine both together and you get... probably even more bugs. So I'm noticing... BTW, what is your approach to avoid such woes when writing in D2?

Multidimensional foreach

2009-12-17 Thread Simen kjaeraas
I have a function that returns an N-dimensional array, where N is a template parameter. Now I want to run a foreach loop through each element of this array. Is there a known and tested way to do this, or should I write my own templates to do it? -- Simen