Skip to content

Conversation

@ntrel
Copy link
Contributor

@ntrel ntrel commented Jan 10, 2017

  • Respect realloc parameter.
  • Fix ddoc for commented out this(this) concatenated into put's docs.
  • Fix missing ddoc for put(CT[]) due to private CT.
  • Use documented unittest for scopeBuffer instead of inline code (which had a typo).

* Fix ddoc for commented out `this(this)` showing in `put`'s docs.
* Fix missing ddoc for `put(CT[])` due to private `CT`.
* Use documented unittest for scopeBuffer instead of inline code.
/****************************
* Copying of ScopeBuffer is not allowed.
*/
//@disable this(this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just delete the docs and the commented out code here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now done

* $(D const(T)[]) as input. It will accept a $(D T[]) otherwise.
*/
private alias CT = Select!(is(const(T) : T), const(T), T);
package alias CT = Select!(is(const(T) : T), const(T), T);
Copy link
Contributor

Choose a reason for hiding this comment

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

rationale?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CT has the docs for the following put, which uses ditto. As CT is private, ddoc ignores its docs and the ditto makes put(CT[]) ditto the first overload of put. (Maybe ddoc could be changed to be more helpful here).

Copy link
Contributor

@JackStouffer JackStouffer left a comment

Choose a reason for hiding this comment

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

+27 −36 :)

@JackStouffer
Copy link
Contributor

Auto-merge toggled on

@JackStouffer JackStouffer merged commit 5154c66 into dlang:master Jan 10, 2017
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