-
-
Notifications
You must be signed in to change notification settings - Fork 668
merge scope/DIP1000 preview #6388
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
return scope: first support
[scope] allow taking address of local in @safe code
refactor: .safe to .vsafe
sync printfs with master
revert changes to closure detection
infer return for 'maybescope' too
treat &a[i] same as &a if 'a' is static array
track assignment to static array member
stop escaping via initialization of 'this'
restrict escape this check to scope preview
fix Issue 16747 - Cannot have stack allocated classes in @safe code
Merge pull request #6279 from WalterBright/fix16747
fix improper determination of 'return this' status
fix Issue 17029 - [Reg 2.072] scope variable may not be returned # Conflicts: # src/escape.d
Merge pull request #6363 from WalterBright/fix17029
…_scope Conflicts: src/escape.d src/func.d src/globals.d src/mars.d src/mtype.d src/statementsem.d test/fail_compilation/test16193.d
Merge remote-tracking branch 'upstream/master' into merge_master_into_scope
- was active without any flags (-transition=safe) - implementation of check w/ -transition=safe still seems incorrect
lvalues should be checked for escapes, not rvalues
|
thanks, @MartinNowak |
|
Can we please keep using a feature branch for all the changes and fixes until 2.074? Delete all the scope branches in the dlang repo now, but we can easily recreated them. |
|
why? Now it's just conventional bug reports and fixes for dip1000 issues. |
|
This pull request introduced a regression: |
An example of why I don't like feature branches - somewhere in 1500 lines of changes is the problem. |
|
It's usually not a problem to bisect inside the branch, it's just that Digger is not set up to do it by default. |
|
Bisected it down to the scope PR and commit -> #5972 (comment) |
This is intended as feature preview (hidden behind a switch). The implementation might still have a few bugs, but we want to test the design with a slightly broader audience.