-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
add with compound statement #20715
base: master
Are you sure you want to change the base?
add with compound statement #20715
Conversation
Thanks for your pull request, @WalterBright! 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. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#20715" |
9fd288b
to
f9e7c96
Compare
f9e7c96
to
00db26d
Compare
Spec PR dlang/dlang.org#4163 |
Note, these are accepted at global, but rejected at a scope level.
Where does this sit with other kinds of statements that have ScopeStatement bodies, which don't get the same syntactical sugar treatment?
|
A fair question. It only came up in the n.g. as a convenience wish for |
I have also been longing for allowing similar syntax for pragma(inline):
pragma(inline, false):
pragma(inline, true): . Is this possible to add support for? |
pragma(ident): // influence subsequent declarations
declaration;
declaration; https://dlang.org/spec/pragma.html That already works. |
Ahh. I forgot. Sorry for disturbing. Thanks. |
This was requested in the newsgroups. Adds the syntax:
which is equivalent to: