December 09, 2021 General » Re: [OT] C# can do all the interpolated strings now | |||
|---|---|---|---|
| |||
...still do this: ```d AliasSeq"hello $name" ``` (or `alias I = AliasSeq;` and `I"hello $name"`) | |||
December 09, 2021 Learn » Re: T... args! | |||
|---|---|---|---|
| |||
...might help understand what is happening: ```d alias foobar = immutable(char)[]; // this doesn't play... | |||
December 09, 2021 Learn » Re: T... args! | |||
|---|---|---|---|
| |||
...meta : Filter; enum bool isType(alias x) = is(x); alias TypesOnly(args...) = Filter!(isType, args... | |||
December 09, 2021 Learn » Re: T... args! | |||
|---|---|---|---|
| |||
Not exactly...
```d
alias str = immutable(char)[];
void foo(str...)(str args) {
foreach(ref a... | |||
December 09, 2021 General » Re: How to convert C to D using compiler? | |||
|---|---|---|---|
| |||
...also things like [inconsistencies and limitations of alias](https://forum.dlang.org/post/augmegssadjgrzvfhofk@forum... | |||
December 08, 2021 Learn » Re: Any workaround for "closures are not yet supported in CTFE"? | |||
|---|---|---|---|
| |||
...interface ICallable
{
void opCall() const;
}
auto makeDelegate(alias fun, Args...)(auto ref Args args)
{
return... | |||
December 08, 2021 Issues » [Issue 17821] atomicStore compile error when target is larger than source | |||
|---|---|---|---|
| |||
...assert(x == 0);
}
{
struct S
{
ulong x;
alias x this;
}
shared S s;
s = 0x1234... | |||
December 08, 2021 Learn » Re: Struct fields and properties as alias members | |||
|---|---|---|---|
| |||
I went with the mixin approach, which seems to work fine except that I couldn... | |||
December 08, 2021 Learn » Re: Struct fields and properties as alias members | |||
|---|---|---|---|
| |||
yeah won't work since the alias again drops the `this`, this is the same... | |||
December 08, 2021 Learn » Re: Struct fields and properties as alias members | |||
|---|---|---|---|
| |||
...a few times I tried to alias the result: `alias theProp = __traits(child, s, field... | |||
Copyright © 1999-2021 by the D Language Foundation