March 22, 2021 Issues » [Issue 21745] New: Closure created in struct constructor passed to class constructor is not heap allocated | |||
|---|---|---|---|
| |||
...int i;
Bar bar;
this(int i)
{
this.i = i;
this.bar = new Bar({ return... | |||
March 21, 2021 Issues » [Issue 21740] Typeof mixin regression with v2.096 | |||
|---|---|---|---|
| |||
...return "bar"; }
int bar;
pragma(msg, typeof(mixin(foo())));
----------------------------------------
=(CTFE)=> pragma(msg, typeof(mixin("bar... | |||
March 19, 2021 Announce » Re: Silicon Valley D Meetup - March 18, 2021 - "Templates in the D Programming Language" by Ali Çehreli | |||
|---|---|---|---|
| |||
...of a lambda variable like this:
auto bar = () @trusted {
// ...
};
We use a static member function... | |||
March 19, 2021 Learn » Re: How do I check if this field is of this template struct? | |||
|---|---|---|---|
| |||
...alias b = bar!"str1"; // type of b is bar!"str1" alias c = bar!"str2"; // typo... | |||
March 18, 2021 General » Re: std.sumtype? | |||
|---|---|---|---|
| |||
...example for some kind of tuple
```
struct Bar(T...) { T val; }
template Foo(T...)
{
enum... | |||
March 17, 2021 Issues » [Issue 4215] Intrduce auto ref parameters for class template variables | |||
|---|---|---|---|
| |||
...bar(T)
{
void bar(auto ref T item)
{
}
}
void main()
{
int a;
bar(2);
bar... | |||
March 16, 2021 Issues » [Issue 7686] template argument ignored with specialization for dependent parameter | |||
|---|---|---|---|
| |||
...double, short), short))); static assert(__traits(compiles, bar!(Pair!(double, short), short))); and static assert... | |||
March 16, 2021 General » Re: Mission-Critical systems | |||
|---|---|---|---|
| |||
...C, I would not worry about the bar being that high. But currently D is... | |||
March 16, 2021 Issues » [Issue 21722] New: toString(sink, string format) does not work with non-"%s" strings | |||
|---|---|---|---|
| |||
...Bar) [0x105f736c4] ??:? void std.stdio.File.writefln!(char, foo.Bar).writefln(const(char[]), foo.Bar... | |||
March 14, 2021 General » Re: What is the shortest way to define an immutable token of unique type? | |||
|---|---|---|---|
| |||
...a class to a struct too
immutable bar = new class { int a; }.toStruct;
That is... | |||
Copyright © 1999-2021 by the D Language Foundation