October 15 DIP Ideas » Re: Allow Conditional Compilation Inside Enum Declaration | |||
|---|---|---|---|
| |||
I use a mixin generator for my types and I can switch between 2 columns... | |||
October 15 General » Re: VisualD regressions are severe; what do we do about critical infrastructure? | |||
|---|---|---|---|
| |||
...a template is or what is a mixin, wich is what phobos is made of... | |||
October 13 Issues » [Issue 24808] Semicolon expected after traits | |||
|---|---|---|---|
| |||
...for mixins:
```
alias X1 = mixin("Types")[0].Type;
alias X2 = mixin("Types").Type;
```
It is... | |||
October 11 DIP Ideas » Re: Allow Conditional Compilation Inside Enum Declaration | |||
|---|---|---|---|
| |||
...MouseButton: ubyte {
static foreach(i; 1..9)
mixin("mouse_"~i.stringof~",");
mouse_left = mouse_1... | |||
October 08 Learn » Re: Why is this not allowed? | |||
|---|---|---|---|
| |||
...d
template Foo() { int hp; }
struct EntityDef
{
mixin Foo stats;
}
void main()
{
auto num = EntityDef... | |||
October 02 Learn » Re: Templates considered impressive | |||
|---|---|---|---|
| |||
...value = data.to!T;
}
mixin DownRange;
}
enum _input = str;
string... | |||
October 01 Learn » Re: Templates considered impressive | |||
|---|---|---|---|
| |||
...02X%)";
}
}
}
import std.stdio;
void main()
{
//mixin MyCon!int;/*
mixin MyCon!int zero;
// There is... | |||
September 28 Learn » Perfect: using foreach with more... | |||
|---|---|---|---|
| |||
...towards perfection!
```d
struct Sarma {
int i;
// mixin DownRange;
}
struct Foo(T) {
int[] array;
... | |||
September 26 General » Re: Do you use full-on BasicType base class / interface? | |||
|---|---|---|---|
| |||
...member function makes little sense. Imagine writing mixin templates without having `typeof(this)`. Also, the... | |||
September 25 DIP Ideas » Symbol Registration | |||
|---|---|---|---|
| |||
...core.attributes the following mixin template implements the list mechanism. ```d mixin template ListOfSymbolState(SymbolState... | |||
Copyright © 1999-2021 by the D Language Foundation