On Fri, 27 Apr 2012 13:31:22 -0400, Jonathan M Davis <jmdavisp...@gmx.com> wrote:

On Friday, April 27, 2012 06:57:28 Steven Schveighoffer wrote:
You have my sympathy. Since working with D, I don't think I've *ever*
used the "declare then implement" model. My personal opinion is that the
compiler should require .di files for declaring stubbed methods.

That would be a problem because of documentation. You need to be able to
include stubbed out functions for ddoc (Phobos generally does that with
version(StdDdoc) when it needs to), otherwise platform-specific stuff doesn't end up in the documentation when you generate it on _other_ platforms. And I
think that it would be unreasonable to require that that be done with .di
files.

Creating a stub function with implementation is quite easy.

-Steve

Reply via email to