August 03, 2021 General » Re: Do you use D's GC? | |||
|---|---|---|---|
| |||
...Again:
```d
void ensureHasRoom(ref ubyte[] buffer, size_t length) {
buffer.length = length; // this is... | |||
August 03, 2021 Issues » [Issue 22174] New: destroy should be @nogc when class destructor is @nogc | |||
|---|---|---|---|
| |||
...size = __traits(classInstanceSize, Example);
auto pointer = malloc(size...should work but doesn't:
```D
import core... | |||
August 03, 2021 General » Re: Do you use D's GC? | |||
|---|---|---|---|
| |||
...buffer, size_t length) {
if (buffer.length < length) {
buffer.length = length;
}
}
I can't be... | |||
August 03, 2021 General » Re: Empty non-null Associative Arrays should be trivial or even the default. | |||
|---|---|---|---|
| |||
...example, AA length property looks like:
```d
size_t aaLength(AA *impl) {
if(impl is... | |||
August 03, 2021 Learn » Re: align dynamic array (for avx friendliness) hints? / possible?? | |||
|---|---|---|---|
| |||
...simply via ``` size_t length = ...; T* myPtr = cast(T*) fftw_malloc(length * T.sizeof); // or... | |||
August 02, 2021 General » Re: C++ mutable in D | |||
|---|---|---|---|
| |||
...Shape {
private static double[size_t] areaLookup;
private const size_t magicNumber; // set on constructor... | |||
August 02, 2021 Learn » Re: cast to pure function stop work after upgrade | |||
|---|---|---|---|
| |||
...C) string VFORMAT(LogLevel level, string file, size_t line, char[] tmp, bool line_break... | |||
August 02, 2021 General » Re: Do you use D's GC? | |||
|---|---|---|---|
| |||
...heap size. In particular, a GC void[] will be scanned but an ubyte[] won't... | |||
August 01, 2021 General » Re: Do you use D's GC? | |||
|---|---|---|---|
| |||
...up to 300MB heap size depending on CPU...when collection pauses won't matter and do... | |||
July 30, 2021 Learn » Re: translate C struct char array into D | |||
|---|---|---|---|
| |||
...test1 *prev;
test1 *next;
size_t v1;
size_t v2;
size_t v3;
char[0... | |||
Copyright © 1999-2021 by the D Language Foundation