November 03 DIP Ideas » Re: Allow designated initialization of struct | |||
|---|---|---|---|
| |||
...One, Two, Three, Four
} Numbers;
typedef struct {
size_t counter;
} S;
int main()
{
assert(Four... | |||
November 02 Announce » Re: Fluid 0.7.0 has been released! | |||
|---|---|---|---|
| |||
...italic*. Otherwise, `TextStyleSlice` should probably use a `size_t` for style indices. Also, things like... | |||
November 02 DIP Development » Re: First Draft: Placement New Expression | |||
|---|---|---|---|
| |||
...d size_t calculateSizeOf(T)(); size_t calculateSizeOf(T)(size_t count); T emplace(T... | |||
November 02 DIP Development » Re: First Draft: Placement New Expression | |||
|---|---|---|---|
| |||
...with the appropriate size for you. ```d T* t = new(allocator)T; ``` Is a whole... | |||
November 01 DIP Development » Re: First Draft: Placement New Expression | |||
|---|---|---|---|
| |||
Currently, there isn't a compile time solution for the allocated size of a class... | |||
October 31 Announce » Re: Fluid 0.7.0 has been released! | |||
|---|---|---|---|
| |||
...is why you don't *just* give it...I only set the size of a `PangoFontDescription... | |||
October 31 DIP Development » Re: First Draft: Placement New Expression | |||
|---|---|---|---|
| |||
...allocator support.
```d
struct Allocator {
void[] allocate(size_t, TypeInfo ti=null);
void deallocate(void... | |||
October 28 Learn » Re: NGINX Unit and vibe.d Integration Performance | |||
|---|---|---|---|
| |||
...IntrusiveQueue;
struct IntrusiveQueue(T)
{
import core.atomic;
private {
T[] buffer;
size_t head, tail;
alias... | |||
October 24 Genel » Bir Zoo yapalım :) | |||
|---|---|---|---|
| |||
...cow, fox, cat }
struct Zoo(Animal i)
{
size_t count;
enum index = i;
}
```
Burada çalışan... | |||
October 24 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...perfect syntax:
```d
struct Zoo(size_t i)
{
size_t count;
static index = i;
}
void... | |||
Copyright © 1999-2021 by the D Language Foundation