January 12, 2014 Learn » logical operands on strings | |||
|---|---|---|---|
| |||
...int len = min(one.length, two.length);
string result;
for(int i=0; i<len... | |||
January 10, 2014 Issues » [Issue 11888] New: Incorrect behaviour taking slice from return value | |||
|---|---|---|---|
| |||
...via
pointer argument:
ubyte* test(size_t* len)
{
*len = 100;
return cast(ubyte*)1234;
}
Call... | |||
December 27, 2013 General » Re: Reserving/Preallocating associative array? | |||
|---|---|---|---|
| |||
...sizeof, 1, f); ulong len = m_Data.length; fwrite(&len, typeof(len).sizeof, 1, f... | |||
December 27, 2013 Learn » Re: inotify and recursion | |||
|---|---|---|---|
| |||
...off];
auto namebuf = evp.len ? (cast(char*)&evp.name)[0..evp.len-1] : null;
while... | |||
December 27, 2013 Learn » Re: inotify and recursion | |||
|---|---|---|---|
| |||
...Name:", (cast(char*)&event.name)[0..event.len-1]); // 2do: strip any extra trailing \0s... | |||
December 27, 2013 Learn » Re: inotify and recursion | |||
|---|---|---|---|
| |||
...Bytes read: ", readlen);
writeln("Length: ", event.len);
writeln("Name:", cast(char[])(buf[event.len..readlen]));
| |||
December 27, 2013 Learn » Re: inotify and recursion | |||
|---|---|---|---|
| |||
...this._watchDescriptor);
}
eventPointer += inotify_event.sizeof + event.len;
}
}
this.checkFileNameChange();
this.checkWatchStatus();
}
}
/**
* Destructor.
*/
~this()
{
this... | |||
December 26, 2013 Issues » [Issue 11825] New: An impossible memcpy at CTFE with cartesianProduct.array | |||
|---|---|---|---|
| |||
...d(2409): called from here: emplace(&bigData[len], item) ..\dmd2\src\phobos\std\array.d... | |||
December 20, 2013 Issues » [Issue 11785] New: Order of method/function declarations has an effect on compilation result. | |||
|---|---|---|---|
| |||
...fails.
FAILED:
long read( ubyte* bytes, long len ) { return 0; }
void read(T)( ref T... | |||
December 20, 2013 Learn » Re: Compilation depends on class methods order | |||
|---|---|---|---|
| |||
...fails.
FAILED:
long read( ubyte* bytes, long len ) { return 0; }
void read(T)( ref T... | |||
Copyright © 1999-2021 by the D Language Foundation