On Wed, 09 May 2012 08:58:56 -0700, Nicolas Sicard <[email protected]> wrote:

On Wednesday, 9 May 2012 at 14:30:33 UTC, Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/telhj/voldemort_types_in_d/

Andrei

One drawback of Voldemort types, is that they are incompatible with the generation of .di files (option -H).

See http://d.puremagic.com/issues/show_bug.cgi?id=5461.

Nicolas

This pull fixes this problem and a bunch of others: https://github.com/D-Programming-Language/dmd/pull/928. However, it currently fails to build on Linux and fails the unittests on Windows thanks to a problem with the dur template function in std.datetime. The solution used by this pull is to include the function body of the auto-function as that was needed to allow Phobos to build correctly using the DRT DI files. This is the only workable solution as DMD does not know the type of an auto-function when DI files are generated. No semantic analysis has been performed and since semantic analysis could change the layout of a module you wouldn't want it to be
performed.

--
Adam Wilson
IRC: LightBender
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/

Reply via email to