heap allocate empty S with variadic ctor

2012-11-04 Thread Dan
This may be a manifestation of bug 1528. In the code below how can I heap allocate a default S? I can't seem to get a call to work. In general structs are stack objects, but is there any problem with using the heap to get one? Thanks Dan -- import std.stdio;

implib error with opencv dll (max 450 chars)

2012-11-04 Thread Andre
Hi, I use the implib tool (http://ftp.digitalmars.com/bup.zip) to create a lib file from the opencv dll opencv_features2d240.dll (x86/vc10). For allmost all other dlls the conversion is working. But for this libary there is following error raised: DLL Exported name too long (max 450 char). Has

Re: why my tail implementation is much more slower than coreutil ?

2012-11-04 Thread Timon Gehr
How long does the hello world program take? I guess it is just that the D program has a slightly higher startup cost than the C program.

Re: heap allocate empty S with variadic ctor

2012-11-04 Thread Dan
On Sunday, 4 November 2012 at 19:30:49 UTC, Tobias Pankrath wrote: Sadly you have to cast, because typeof([]) is void[]. Alternatively you could define an constructor that takes void[] but insists of the argument being empty. Great explanation - thanks!

Re: question on [Issue 7853]

2012-11-04 Thread Tobias Pankrath
On 04.11.2012 21:49, Dan wrote: This bug has no comments. The original says: The fix is obvious: redefine postblit as this(const this); but it isn't always obvious when looking at hundreds of lines of code Is this accepted/correct? In the following if I include the this(const this)

Re: Derelict3: can't load a shared library

2012-11-04 Thread bioinfornatics
Le vendredi 02 novembre 2012 à 19:33 +0100, Andrey a écrit : I know this isn't quite a right place for my problem, but you need to wait uncertain amount of time for registration on the official derelict forum, so I decided to start here. you can open an issuer from github to discuss about

Re: question on [Issue 7853]

2012-11-04 Thread Dan
On Sunday, 4 November 2012 at 21:44:15 UTC, Tobias Pankrath wrote: I don't think that currently qualifiers work with the postblit constructor. See here for a related discussion. http://forum.dlang.org/thread/CAFDvkcvvL8GxHQB=Rw9pTm-uxOKzNGVQNDv9w5Os3SkQCc=d...@mail.gmail.com Thanks. The