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

Regression 7493 Initialization of void[][N] #866

Merged
merged 2 commits into from Apr 5, 2012

Conversation

donc
Copy link
Collaborator

@donc donc commented Apr 4, 2012

Make it so that:

void []...[N] arr = foo

is never a block assignment, except for the necessary:

void []...[N] arr = null

Ie, foo must always be an array of length N with members that implicitly convert to void[]...
I think this is the most defensible and predictable semantics for this bizarre corner case.
However, note that the spec doesn't mention block assignment at all.

WalterBright added a commit that referenced this pull request Apr 5, 2012
Regression 7493 Initialization of void[][N]
@WalterBright WalterBright merged commit eb7a044 into dlang:master Apr 5, 2012
WalterBright added a commit that referenced this pull request Apr 5, 2012
braddr pushed a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Expanded test for issue# 8792.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants