Re: DSO with DMD 2.052 on Linux?

2011-05-02 Thread Kai Meyer
On 05/02/2011 03:10 PM, Jonathan M Davis wrote: Is dynamic linking supported on Linux with DMD 2.052 (and D2 in general)? I am not talking about Phobos, just modules which I want to compile as DSO. There is -fPIC switch to DMD - does it work as intended? PS: gdc is not an option... The short

Re: DSO with DMD 2.052 on Linux?

2011-05-02 Thread Jonathan M Davis
> Is dynamic linking supported on Linux with DMD 2.052 (and D2 in general)? > > I am not talking about Phobos, just modules which I want to compile as DSO. > > There is -fPIC switch to DMD - does it work as intended? > > PS: gdc is not an option... The short answer: no. As for the long answer,

DSO with DMD 2.052 on Linux?

2011-05-02 Thread Alexander
Is dynamic linking supported on Linux with DMD 2.052 (and D2 in general)? I am not talking about Phobos, just modules which I want to compile as DSO. There is -fPIC switch to DMD - does it work as intended? PS: gdc is not an option... -- /Alexander

Re: link from a dll to another function in another dll?

2011-05-02 Thread Rainer Schuetze
If you are coming from java, you are probalby used to the ideal world of VM programming, where everything is abstracted away from the actual platform you are running on. What you are trying to do with replacing kernel32.dll pokes around in very lowlevel Windows specific implementation details.

Re: How about a Hash template?

2011-05-02 Thread Kai Meyer
On 04/29/2011 07:13 AM, Jacob Carlborg wrote: On 2011-04-28 21:46, Timon Gehr wrote: Andrei Alexandrescu wrote: On 4/28/11 11:00 AM, Alexander wrote: On 28.04.2011 17:46, Andrej Mitrovic wrote: It works, but it makes the if statement ugly again. :) Well, just a bit - still much better than

Re: deprecated delete and manual memory management

2011-05-02 Thread Steven Schveighoffer
On Fri, 29 Apr 2011 17:02:55 -0400, Timon Gehr wrote: Steven Schveighoffer wrote: 2. the GC is conservative, and you are allocating swaths of 1K objects. It's quite possible that you are running into false pointer issues. This might be helped with a more precise GC (which there is a patch