Search

October 25
Issues »
...dlang@jmdavisProg.com

std.traits.hasElaborateAssign (and therefore core.internal.traits.hasElaborateAssign, since one uses...
October 25
Issues »
...g.

---
struct S
{
    this(this) {}
}
pragma(msg, __traits(allMembers, S));
---

prints

---
AliasSeq!("__postblit", "__xpostblit", "opAssign...
October 25
Issues »
...functions. E.G.

---
void main()
{
    import std.traits;

    static struct S
    {
        int i;

        void opAssign...
October 23
Learn »
...type string doesn't!

```d
import std.traits : EnumMembers;
import std.algorithm : countUntil;

enum Test...
October 23
Learn »
...get displayed, because it happens inside a `__traits(compiles)` check (inside `countUntil`).

Attempting to call...
October 23
Learn »
...won't work with aliases?
```
import std.traits : EnumMembers;
import std.algorithm : countUntil;

enum Test...
October 22
Learn »
...its name consistent on code refactoring.

```d
pragma(mangle, "leogfx_" ~ __traits(identifier, pInit))
bool pInit() {
...
}
```
October 19
Learn »
...msg, __traits(allMembers, __traits(parent, foo)));  // prints AliasSeq!("object", "std", "dummy", "foo")

//pragma(msg, __traits...
October 15
Issues »
...assert(__traits(getAttributes, foo)[0] == 3);

@(3)
int bar(T)() => 0;
static assert(__traits(getAttributes...
October 13
General »
...p, got a ref: %d\n", &s, __traits(isRef, s));
    return s; // copy parameter lvalue...
1 2 3 4 5 6 7
Next ›   Last »