Skip to content

Comments

add new feature AliasAssign to spec#2868

Merged
mdparker merged 2 commits intodlang:masterfrom
WalterBright:AliasAssign
Jul 3, 2021
Merged

add new feature AliasAssign to spec#2868
mdparker merged 2 commits intodlang:masterfrom
WalterBright:AliasAssign

Conversation

@WalterBright
Copy link
Member

Implementation: dlang/dmd#11846

@dlang-bot
Copy link
Contributor

dlang-bot commented Oct 16, 2020

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

@mdparker
Copy link
Member

@WalterBright If you can address my review comments, I can merge this as soon as #2919 is good to go.

@dlang-bot dlang-bot removed the stalled label Jul 3, 2021
@WalterBright WalterBright dismissed mdparker’s stale review July 3, 2021 06:32

requested changes implemented

@mdparker mdparker merged commit 115e239 into dlang:master Jul 3, 2021

$(GRAMMAR
$(GNAME AliasAssign):
$(I Identifier) $(D =) $(GLINK Type)
Copy link
Member

Choose a reason for hiding this comment

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

Type is declared in type.dd, not in this file.

$(GLINK2 function, FuncDeclaration)
$(GLINK VarDeclarations)
$(GLINK AliasDeclaration)
$(GLINK AliasAssign)
Copy link
Member

Choose a reason for hiding this comment

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

This isn't right because then it is syntactically ambiguous in function scope. It is the same syntax as AssignExpression (unless Type happens to be a FundamentalType or otherwise unambiguously a type).

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.

4 participants