September 09, 2023 Learn » Re: malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...a problem they don't know how to...then later: ok, so `size` must mean the... | |||
September 09, 2023 Learn » Re: malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...to work where sizeof(T) == 1. Changing to malloc(size * sizeof(T)) is likely going... | |||
September 08, 2023 Learn » Re: malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...terminator
this._ptr = cast(T*)malloc(size);
}
ref T opIndex(size_t idx) { return _ptr... | |||
September 08, 2023 Learn » Re: malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...d size_t length = 5; int* pointer = cast(int*)malloc(int.sizeof * length); //Don't... | |||
September 08, 2023 Learn » Re: malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...check before malloc that size>0, and second...Also this example doesn't have len field... | |||
September 08, 2023 Learn » malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...i64 size) {
this._len = 0;
this._cap = size;
static if (is(T == char)) { size += 1... | |||
September 07, 2023 General » Re: On the panel discussion at Dconf day 3 | |||
|---|---|---|---|
| |||
...for instance, on the size of the company...thank goodness we aren't far enough gone... | |||
September 04, 2023 General » Re: Implicit @Safe Resources | |||
|---|---|---|---|
| |||
...going below the size of a pointer and even if that wasn't a concern... | |||
September 02, 2023 General » Re: D Core Guidelines? | |||
|---|---|---|---|
| |||
...CUDA life. The sheer size and complexity of...That said, I don't know of any... | |||
September 02, 2023 General » New Lookup Table (MixString) | |||
|---|---|---|---|
| |||
...l.to!(wchar[]);
struct MixString(T, T[] leftLiterals)
{
size_t index;
dchar[] dict;
this(string... | |||
Copyright © 1999-2021 by the D Language Foundation