-
-
Notifications
You must be signed in to change notification settings - Fork 382
documents the limitation of attributes on overridden functions #1584
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
Conversation
| ------ | ||
|
|
||
| $(P It's not allowed to mark an overridden method with the attributes | ||
| $(LINK2 attribute.html#disable, $(D @disable)) or |
There was a problem hiding this comment.
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 ;-)
|
On Mon, Feb 27, 2017 at 09:17:56PM -0800, Sebastian Wilzbach wrote:
+ $(P It's not allowed to mark an overridden method with the attributes
+ $(LINK2 attribute.html#disable, $(D @disable)) or
please use a macro for such links, e.g `RELATIVE_LINK2` would work ;-)
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 can understand having a macro for linking to the spec which prepends /whatever-base/spec/ to it, but I'd call that SPEC_LINK not RELATIVE_LINK2...
|
I have just been trying to review this and compared the link style with the prevalent one in the document. |
|
On Mon, Feb 27, 2017 at 09:28:10PM -0800, Sebastian Wilzbach wrote:
I have just been trying to review this and compared the link style with the prevalent one in the document.
huh, yeah, it is used elsewhere so I guess we can just be consistent with that here.
My assumption for the need was that from the spec a PDF, mobi and Kindle ebook is generated?
As far as I can tell, the definition is pretty consistently just an alias for LINK2. It is reasonable for a contributor to be confused by it...
|
@bbasile would you mind updating your PR, so that we can merge it and move forward? |
|
@wilzbach RELATIVE_LINK2 cannot possibly replace that LINK2... the definition in html.ddoc puts a |
|
@wilzbach, not done because not needed. LINK2 is good here. |
|
@wilzbach, do we agree on this PR finally ? That's already too much discussion for such a detail. |
wilzbach
left a comment
There was a problem hiding this 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.
Just to prevent any report tagged "reject-valid" after this D front-end change: dlang/dmd#6570