Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Projects
None yet
3 participants
Collaborator

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 WalterBright added a commit that referenced this pull request Apr 5, 2012

@WalterBright WalterBright Merge pull request #866 from donc/regression7493
Regression 7493 Initialization of void[][N]
eb7a044

@WalterBright WalterBright merged commit eb7a044 into dlang:master Apr 5, 2012

@WalterBright WalterBright added a commit that referenced this pull request Apr 5, 2012

@WalterBright WalterBright merge D2 pull #866 ffa2673
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment