Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 26, 2017

Just to prevent any report tagged "reject-valid" after this D front-end change: dlang/dmd#6570

------

$(P It's not allowed to mark an overridden method with the attributes
$(LINK2 attribute.html#disable, $(D @disable)) or
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use a macro for such links, e.g RELATIVE_LINK2 would work ;-)

@adamdruppe
Copy link
Contributor

adamdruppe commented Feb 28, 2017 via email

@wilzbach
Copy link
Contributor

I'm not really following this (just saw an email), but why? Linking with the ddoc macros is complicated enough as it is, so why use another for a standard url feature like relative linking? I don't think I have ever seen RELATIVE_LINK2 before (though again, I haven't been following closely) and don't really see why you'd need it, even for other bases like library-prerelease.

I have just been trying to review this and compared the link style with the prevalent one in the document.
My assumption for the need was that from the spec a PDF, mobi and Kindle ebook is generated?

@adamdruppe
Copy link
Contributor

adamdruppe commented Feb 28, 2017 via email

@wilzbach wilzbach added this to the 2.074.0 milestone Mar 5, 2017
@wilzbach
Copy link
Contributor

huh, yeah, it is used elsewhere so I guess we can just be consistent with that here.

@bbasile would you mind updating your PR, so that we can merge it and move forward?

@adamdruppe
Copy link
Contributor

@wilzbach RELATIVE_LINK2 cannot possibly replace that LINK2... the definition in html.ddoc puts a # on the href meaning it can't cross pages.

@ghost
Copy link
Author

ghost commented Mar 15, 2017

@wilzbach, not done because not needed. LINK2 is good here.

@ghost
Copy link
Author

ghost commented Mar 19, 2017

@wilzbach, do we agree on this PR finally ? That's already too much discussion for such a detail.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bbasile: Oh I am sorry. I totally forgot about this PR. You are absolutely right: these small PRs shouldn't get stalled for such a long time.

@wilzbach wilzbach merged commit 3039c73 into dlang:master Mar 26, 2017
@ghost ghost deleted the overridden-attribs-limit branch March 27, 2017 15:31
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

Successfully merging this pull request may close these issues.

2 participants