-
-
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
Improve order of evaluation spec, add lifetime of temporaries spec #2625
Conversation
|
Thanks for your pull request, @andralex! 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. |
|
|
|
@thewilsonator found and fixed one missing paren |
|
Waiting to see input from Timon. (N.B the 72->h merge does not auto-merge) |
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.
Approved with changes noted.
Fixed, thanks
spec/expression.dd
Outdated
| int f4() { writeln("f4() called"); return 1; } | ||
| int f3(int x) { writeln("f3() called"); return x + 1; } | ||
| int f1() { writeln("f1() called"); return 2; } | ||
| int f2() { writeln("f2() called"); return 3; } |
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 declare them in order. Also, f4 should return 4, not 1. Etc. By scrambling the order and relationships, it leads the reader to look for something tricky going on, when there isn't.
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.
ah good point
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.
done
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.
oh wait
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.
re-done
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.
Ah, lovely!
|
Please make sure the commits are squashed when merging. |
This formalizes behavior already existing in the compiler. It simplifies the rvalue ref DIP.