Search

January 16, 2022
Learn »
...an externally visible alias to that type.

Something like this (untested):

```d
alias MyClass = shared...
January 15, 2022
Genel »
...dX;
}

struct Foo {
  ubyte id;
  DATA _data;

  alias _data this;

  this(char id) {
    this.id...
January 15, 2022
Issues »
...enum string attr_string = ""; }

alias foo_frop = foo!frop;
class frop { alias type_id = registry...
January 15, 2022
Genel »
...lastUsed, ref size_t totalPadding) {
  alias types = Fields!T;
  alias names = FieldNameTuple!T;
  static assert...
January 14, 2022
General »
...tinkering with derived types, more specifically with `alias`. The
same with built-in types the...
January 14, 2022
General »
...so very useful anymore if you have structs, alias this and UFCS-(pseudo-)member-functions.
January 14, 2022
Learn »
Thanks Adam. We need a repository of articles about stuff that doesn't do what...
January 14, 2022
Learn »
...discarded.

alias b = rhs.num;

drops the this, instead doing something more like `alias b...
January 14, 2022
Learn »
...T : Broke))
        {
            alias b = rhs.num;
            assert(&b != &this.num); //this fails
        }
        else
        {
            alias b...
January 14, 2022
General »
...is no longer supported, use NewType instead") alias OldType = noreturn;
```

and with that both add...
253 254 255 256 257 258 259 260 261 262 263
Next ›   Last »