Skip to content

Conversation

monarchdodra
Copy link
Collaborator

Just a quick patch for opAssign(T)

This either:
*Asserts not initialized and autoInit==No (instead of doing an straight up access violation)
*calls "ensuresInitialized" if autoInit==Yes (making it work, instead of doing an access violation)

Uses "move(a, b)" instead of "b = move(a)" for slightly increased performance

Contains a stupid and small unittest, but covers as-of-yet uncovered basic usage

This either:
*Asserts if autoInit==No and not initialized (instead of doing an access violation)
*EnsuresInitialized if autoInit==Yes

Uses "move(a, b)" instead of "b = move(a)" for slightly increased performance
andralex added a commit that referenced this pull request Aug 6, 2012
@andralex andralex merged commit 2296401 into dlang:master Aug 6, 2012
@andralex
Copy link
Member

andralex commented Aug 6, 2012

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants