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

More isAssignable/hasElaborateAssign coverage/doc #1173

Closed
wants to merge 1 commit into from
Closed

More isAssignable/hasElaborateAssign coverage/doc #1173

wants to merge 1 commit into from

Conversation

monarchdodra
Copy link
Collaborator

Unittest and Doc change only.

Because hasElaborateAssign is an odd beast.

Having maximum coverage in unittests helps detect breaking changes, as well as internally documents the workings of the function. It helps looking at the unit-tests to know how it works, without making the documentation overkill.

@@ -2719,6 +2719,10 @@ unittest
defining $(D opAssign(typeof(this))) or $(D opAssign(ref typeof(this)))
for a $(D struct). (Non-struct types never have elaborate assignments.)

Note: There is no correlation between $(D hasElaborateAssign) and
$(D isAssignable). Having elaborate assignement does not imply
Copy link

Choose a reason for hiding this comment

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

assignement -> assignment

Unittest and Doc change only.

Because hasElaborateAssign is an odd beast.

Having maximum coverage in unittests helps detect breaking changes, as well as internally documents the workings of the function. It helps looking at the unit-tests to know how it works, without making the documentation overkill.
@monarchdodra
Copy link
Collaborator Author

Closing because now obsolete.

@monarchdodra monarchdodra deleted the hasElaborateAssign branch April 8, 2014 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant