On Wednesday, May 09, 2012 10:05:36 Adam Wilson wrote: > On Wed, 09 May 2012 08:58:56 -0700, Nicolas Sicard <dran...@gmail.com> > > 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.
Actually, dur is in core.time (which is publicly imported by std.datetime), but regardless, what's wrong with it? It's incredibly straightforward. - Jonathan M Davis