July 25, 2021 Learn » Re: Destructors can't be @nogc? | |||
|---|---|---|---|
| |||
...auto size = __traits(classInstanceSize, T);
auto memory = malloc(size)[0..size];
T t = emplace!(T... | |||
July 23, 2021 Learn » Destructors can't be @nogc? | |||
|---|---|---|---|
| |||
...void
main() {
auto size = __traits(classInstanceSize, TestClass);
auto memory = malloc(size)[0..size];
TestClass x... | |||
July 23, 2021 Learn » Re: Build time | |||
|---|---|---|---|
| |||
...memory depending on the size of the string...in chunks it isn't too bad at... | |||
July 22, 2021 Issues » [Issue 22136] New: hashOf failed to compile because of different inheritance order in DMD 2.097.1 | |||
|---|---|---|---|
| |||
...string s;
size_t t = hashOf(s);
}
{
OK!string s;
size_t t = hashOf(s);
}
}
```
-- | |||
July 21, 2021 Learn » Re: How to Fix Weird Build Failure with "-release" but OK with "-debug"? | |||
|---|---|---|---|
| |||
...pham.db): // Line# 133
final DbReadBuffer acquireSocketReadBuffer(size_t capacity = DbDefaultSize.socketReadBufferLength) nothrow @safe
{
version... | |||
July 21, 2021 Learn » Re: betterC shared static ctor | |||
|---|---|---|---|
| |||
...is not initialized
}
struct Vtable{
size_t offset;
size_t function(void* ) getId;
}
struct Base... | |||
July 21, 2021 Issues » [Issue 22134] New: Deprecate returning a void value from a function | |||
|---|---|---|---|
| |||
...d#L73-L82
---
struct StackBuffer
{
auto opIndex(size_t i)
{
return arr[i];
}
private:
void... | |||
July 20, 2021 Learn » Re: Can static variables in methods be local for each object? | |||
|---|---|---|---|
| |||
...X
{
int x(int param);
}
class XImpl(size_t n = 0) : X {
int x(int... | |||
July 19, 2021 Learn » Re: Yet another parallel foreach + continue question | |||
|---|---|---|---|
| |||
Logically speaking, the size of the work unit...a dependency). I didn't check the implementation... | |||
July 19, 2021 Learn » Re: Syscall wrapper and stack destruction | |||
|---|---|---|---|
| |||
...size; ulong stx_blocks; ulong stx_attributes_mask; // 0x40 timestamp_t stx_atime; timestamp_t... | |||
Copyright © 1999-2021 by the D Language Foundation