Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version(D_Ddoc) end up being in documentation #25

Open
FreeSlave opened this issue May 30, 2018 · 3 comments
Open

version(D_Ddoc) end up being in documentation #25

FreeSlave opened this issue May 30, 2018 · 3 comments

Comments

@FreeSlave
Copy link

///
module main;

///
interface SomeInterface
{
    void someFunc();
}

///
version(D_Ddoc){
    final class SomeClass : SomeInterface
    {
        void someFunc() {}
    }
}

void main()
{

}

Result:

screenshot from 2018-05-30 15-56-03

You can also see strange positioning of final keyword.

@adamdruppe
Copy link
Owner

adamdruppe commented May 30, 2018 via email

@FreeSlave
Copy link
Author

Actually, I think version(ddoc) should be considered harmful and removed

What do you suggest users should do when there're two completely different implementations (depending on platform), but with the same interface?

@adamdruppe
Copy link
Owner

adamdruppe commented May 30, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants