March 25, 2021 General » Re: std.sumtype? | |||
|---|---|---|---|
| |||
...restrictTo!(Foo0, Foo1, Foo2, Foo3, Foo4,
val => doSomething1
),
restrictTo!(Bar, Baz, FooBar,
val => doSomething2
),
_ => doDefaultThings
); | |||
March 25, 2021 General » Re: std.sumtype? | |||
|---|---|---|---|
| |||
...doSomething1, (Foo3 foo) => doSomething1, (Foo4 foo) => doSomething1, (Bar bar) => doSomething2, (Baz baz) => doSomething2, (FooBar fb... | |||
March 25, 2021 Issues » [Issue 21745] 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 24, 2021 Issues » [Issue 21752] Template constraint breaks nested eponymeous template | |||
|---|---|---|---|
| |||
...templates without overload resolution:
template bar()
{
template bar()
{
void bar()()
if (true) // Comment this constraint... | |||
March 24, 2021 Issues » [Issue 21745] Closure created in struct constructor passed to class constructor is not heap allocated | |||
|---|---|---|---|
| |||
...Bar bar;
this(int i)
{
this.i = i;
Foo f = this;
this.bar = new Bar... | |||
March 23, 2021 Learn » Re: Implicit conversion of unique chars[] to string | |||
|---|---|---|---|
| |||
...const(char)[] x1 = "foo";
const string x2 = "bar";
auto y1 = chainPath(x1, x2).array;
pragma... | |||
March 22, 2021 Learn » Re: Implicit conversion of unique chars[] to string | |||
|---|---|---|---|
| |||
...chainPath(x, "bar").array; Error: cannot implicitly convert expression array(chainPath(x, "bar")) of type... | |||
March 22, 2021 Learn » Re: Implicit conversion of unique chars[] to string | |||
|---|---|---|---|
| |||
...chainPath;
void main()
{
string chained = chainPath("foo", "bar").array;
}
----
Uniqueness is being inferred based on... | |||
March 22, 2021 Issues » [Issue 21745] Closure created in struct constructor passed to class constructor is not heap allocated | |||
|---|---|---|---|
| |||
...k, t;
Bar bar;
this(int i)
{
this.i = i;
this.bar = new Bar({ return... | |||
March 22, 2021 Issues » [Issue 21745] 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... | |||
Copyright © 1999-2021 by the D Language Foundation