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

Improve Blackhole documentation #3175

Merged
merged 1 commit into from
Apr 11, 2015
Merged

Conversation

MetaLang
Copy link
Member

  • Add Params section.
  • Add LREF to the See_Also entries.
  • Change example to a documented unittest.

writeln(c.realValue); // prints "NaN"
c.doSomething(); // does nothing
// Returns real.init which is NaN
assert(c.realValue.isNaN);
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps, to reinforce that .init is what is returned, this could be:

assert(c.realValue == real.init);

what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

isNaN must be used because NaN == NaN evaluates to false.

@Orvid
Copy link
Contributor

Orvid commented Apr 11, 2015

LGTM

@JakobOvrum
Copy link
Member

Auto-merge toggled on

JakobOvrum added a commit that referenced this pull request Apr 11, 2015
Improve Blackhole documentation
@JakobOvrum JakobOvrum merged commit 1f6c706 into dlang:master Apr 11, 2015
@MetaLang MetaLang deleted the blackhole-doc branch April 18, 2015 06:43
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