Search

June 24, 2022
Issues »
...a;

static assert(is(a == module)); // ok

alias m = __traits(parent, {}); static assert(is(m...
June 22, 2022
Learn »
...don't even need to use the alias.

```d
void main(){
    template bar(){
        void bar...
June 22, 2022
Learn »
...bar(){
		void bar_(int){}
		void bar_(float){}
		alias bar=bar_;
	}
	bar(1);
	bar(3.14);
}
```
June 21, 2022
Learn »
Maybe check out `std.meta.Alias`?

https://dlang.org/phobos/std_meta.html#.Alias
June 21, 2022
Learn »
...alias shortName = theFirstName[theFirstIndex].theSecondName[theSecondIndex].thirdName[theThirdIndex];
shortName = x;
```
but you can't alias...
June 21, 2022
General »
...string _str;
    string get()
    {
        return gettext(_str);
    }
    alias get this;
}
private @safe struct Strplusarg {
    this...
June 20, 2022
General »
...string _str;
    string get()
    {
        return gettext(_str);
    }
    alias get this;
}
private @safe struct TranslatableStringPlural
{
    string...
June 20, 2022
General »
...str;
    string get() {
        return curLang.translate(_str);
    }
    alias get this;
}
template gettext(string str) {
    version...
June 19, 2022
General »
...fixed. Please try and see with your own eyes:

```d
alias integer = long;
```

SDB@79
June 19, 2022
General »
...numbers.

```d
import std.math, std.stdio;
alias integer = ulong;

void main()
{
  integer n = 94...
209 210 211 212 213 214 215 216 217 218 219
Next ›   Last »