Merge pull request #195 from vibe-d/fixes
Fixes merged-on-behalf-of: Leonid Kramer <l-kramer@users.noreply.github.com>
This commit is contained in:
commit
6ceb462ab6
|
@ -769,7 +769,7 @@ private mixin template isolatedArrayMethods(T, bool mutableRef = true)
|
||||||
@property void length(size_t value) pure { m_array.length = value; }
|
@property void length(size_t value) pure { m_array.length = value; }
|
||||||
|
|
||||||
|
|
||||||
void opCatAssign(T item) pure
|
void opOpAssign(string op = "~")(T item) pure
|
||||||
{
|
{
|
||||||
static if( isCopyable!T ) m_array ~= item;
|
static if( isCopyable!T ) m_array ~= item;
|
||||||
else {
|
else {
|
||||||
|
@ -778,7 +778,7 @@ private mixin template isolatedArrayMethods(T, bool mutableRef = true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void opCatAssign(IsolatedArray!T array) pure
|
void opOpAssign(string op = "~")(IsolatedArray!T array) pure
|
||||||
{
|
{
|
||||||
static if( isCopyable!T ) m_array ~= array.m_array;
|
static if( isCopyable!T ) m_array ~= array.m_array;
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -1145,7 +1145,7 @@ struct Timer {
|
||||||
/** Resets the timer to the specified timeout
|
/** Resets the timer to the specified timeout
|
||||||
*/
|
*/
|
||||||
void rearm(Duration dur, bool periodic = false) nothrow
|
void rearm(Duration dur, bool periodic = false) nothrow
|
||||||
in { assert(dur > 0.seconds, "Negative timer duration specified."); }
|
in { assert(dur >= 0.seconds, "Negative timer duration specified."); }
|
||||||
body { m_driver.timers.set(m_id, dur, periodic ? dur : 0.seconds); }
|
body { m_driver.timers.set(m_id, dur, periodic ? dur : 0.seconds); }
|
||||||
|
|
||||||
/** Resets the timer and avoids any firing.
|
/** Resets the timer and avoids any firing.
|
||||||
|
|
|
@ -27,9 +27,9 @@ public import eventcore.driver : IOMode;
|
||||||
|
|
||||||
/** Pipes an InputStream directly into this OutputStream.
|
/** Pipes an InputStream directly into this OutputStream.
|
||||||
|
|
||||||
The number of bytes written is either the whole input stream when `nbytes == 0`, or exactly
|
The number of bytes written is either the whole input stream when
|
||||||
`nbytes` for `nbytes > 0`. If the input stream contains less than `nbytes` of data, an
|
`nbytes == ulong.max`, or exactly `nbytes` for `nbytes < ulong.max`. If the
|
||||||
exception is thrown.
|
input stream contains less than `nbytes` of data, an exception is thrown.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The actual number of bytes written is returned. If `nbytes` is given
|
The actual number of bytes written is returned. If `nbytes` is given
|
||||||
|
|
Loading…
Reference in a new issue