October 25 Issues » [Issue 24835] New: hasElaborateAssign is true for structs where opAssign is disabled if a member variable has elaborate assignment | |||
|---|---|---|---|
| |||
...dlang@jmdavisProg.com std.traits.hasElaborateAssign (and therefore core.internal.traits.hasElaborateAssign, since one uses... | |||
October 25 Issues » [Issue 24834] New: opAssign is not generated for structs with copy constructors | |||
|---|---|---|---|
| |||
...g.
---
struct S
{
this(this) {}
}
pragma(msg, __traits(allMembers, S));
---
prints
---
AliasSeq!("__postblit", "__xpostblit", "opAssign... | |||
October 25 Issues » [Issue 24833] New: enums with a base type with a copy / postblite ctor, opAssign, or dtor should either use them or be disallowed | |||
|---|---|---|---|
| |||
...functions. E.G.
---
void main()
{
import std.traits;
static struct S
{
int i;
void opAssign... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...type string doesn't! ```d import std.traits : EnumMembers; import std.algorithm : countUntil; enum Test... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...get displayed, because it happens inside a `__traits(compiles)` check (inside `countUntil`). Attempting to call... | |||
October 23 Learn » std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...won't work with aliases? ``` import std.traits : EnumMembers; import std.algorithm : countUntil; enum Test... | |||
October 22 Learn » Re: Function names, Lib used from C and D | |||
|---|---|---|---|
| |||
...its name consistent on code refactoring.
```d
pragma(mangle, "leogfx_" ~ __traits(identifier, pInit))
bool pInit() {
...
}
``` | |||
October 19 Learn » Re: List classes at compile time | |||
|---|---|---|---|
| |||
...msg, __traits(allMembers, __traits(parent, foo))); // prints AliasSeq!("object", "std", "dummy", "foo")
//pragma(msg, __traits... | |||
October 15 Issues » [Issue 24817] New: UDA on nested template does not work | |||
|---|---|---|---|
| |||
...assert(__traits(getAttributes, foo)[0] == 3); @(3) int bar(T)() => 0; static assert(__traits(getAttributes... | |||
October 13 General » move+forward as intrinsics, incl. revised forward semantics for perfect forwarding | |||
|---|---|---|---|
| |||
...p, got a ref: %d\n", &s, __traits(isRef, s));
return s; // copy parameter lvalue... | |||
Copyright © 1999-2021 by the D Language Foundation