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

Fixed issue 18830 - document "new" with "scope" in @nogc Functions #3515

Merged
merged 2 commits into from
Feb 2, 2023

Conversation

RaresCon
Copy link
Contributor

@RaresCon RaresCon commented Feb 2, 2023

Added documentation for allowance of "new" in @nogc functions.

@dlang-bot
Copy link
Contributor

dlang-bot commented Feb 2, 2023

Thanks for your pull request and interest in making D better, @RaresCon! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
18830 minor Document Allowance for "new" with "scope" in @nogc Functions

spec/function.dd Outdated
@@ -3558,7 +3558,10 @@ $(H2 $(LNAME2 nogc-functions, No-GC Functions))
$(LI $(DDSUBLINK spec/expression, AssocArrayLiteral, constructing an associative array))
$(LI $(DDSUBLINK spec/expression, IndexExpression, indexing) an associative array
$(NOTE because it may throw $(D RangeError) if the specified key is not present))
$(LI $(DDSUBLINK spec/expression, NewExpression, allocating an object with `new`) on the heap)
$(LI $(DDSUBLINK spec/expression, NewExpression, allocating an object with `new`) on the heap
$(NOTE `new` declarations of $(D class types) are
Copy link
Contributor

Choose a reason for hiding this comment

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

new declaration of $(D class types) in function scopes are [..]

@RazvanN7
Copy link
Contributor

RazvanN7 commented Feb 2, 2023

Please use "Fix issue ..." in the commit message (not "Fixed") so that the bot picks this up.

@dlang-bot dlang-bot merged commit 0462dcf into dlang:master Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants