-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Slightly rephrase and actualize -preview=in section #2937
Conversation
|
Thanks for your pull request, @Geod24! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
spec/function.dd
Outdated
| Dynamic arrays$(COMMA) classes$(COMMA) associative arrays$(COMMA) function pointers$(COMMA) and delegates | ||
| will always be passed by value$(COMMA) to allow for covariance. | ||
| If the type of the parameter does not fall in one of those categories$(COMMA) | ||
| will always be passed by value$(COMMA).) |
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.
| will always be passed by value$(COMMA).) | |
| will always be passed by value.) |
Also remove other trailing commas, since each paragraph must end with full stop.
| whether or not it is passed by reference is implementation defined$(COMMA) and the backend is free | ||
| to choose the method that will best fit the ABI of the platform. | ||
| $(B Note: This requires the $(D -preview=in) switch$(COMMA) available in v2.094.0 or higher.) | ||
| ) |
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.
Wrap this paragraph in $(IMPLEMENTATION_DEFINED macro
spec/function.dd
Outdated
| @@ -1282,18 +1282,20 @@ $(H3 $(LNAME2 param-storage, Parameter Storage Classes)) | |||
|
|
|||
| $(H3 $(LNAME2 in-params, In Parameters)) | |||
|
|
|||
| $(B Note: The following requires the $(D -preview=in) switch$(COMMA) available in v2.094.0 or higher. | |||
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.
v2.094.0 -> add link to https://dlang.org/changelog/2.094.0.html#preview-in
- Adding 'also' to connect it better with the previous sentence about 'const scope'; - Remove 'they' which was grammatically incorrect; - Use parenthesis around 'e.g.', to be consistent with the two previous usages; - Remove 'to allow for covariance, as 'in' are not covariant with const anymore; - Added more `$(P)` for the paragraph too look less beefy; - Make the note about the preview switch more prevalent not to confuse users; - Document the behavior without the preview switch;
@CyberShadow : I think I'm not to blame for this one ? |
|
Fixed |


Saw #2916 and realize it needed some tiny adjustments w.r.t.
-preview=in.