Search

February 17, 2022
Issues »
https://issues.dlang.org/show_bug.cgi?id=21674

--- Comment #7 from Iain Buclaw <ibuclaw...
February 17, 2022
Issues »
...bool _state;
    alias _state this;
}

struct S1 {
    @property auto ref entry() { return *getPtr(); }
    alias entry...
February 17, 2022
Issues »
...S s) {
        return 2*s.x;
    }
}

alias getMemberType(alias O, string name)=typeof(__traits(getMember...
February 15, 2022
Learn »
...should accept this is:

```d
auto split(alias isTerminator, Range)(Range range)
if (isForwardRange!Range...
February 15, 2022
Issues »
https://issues.dlang.org/show_bug.cgi?id=22540

RazvanN <razvan.nitu1305@gmail.com> changed...
February 15, 2022
Issues »
https://issues.dlang.org/show_bug.cgi?id=14501

RazvanN <razvan.nitu1305@gmail.com> changed...
February 12, 2022
Learn »
...this?
>
> --------
> final class Boxed(T) {
> 	T payload;
> 	alias payload this; // caveat: probably not a good...
February 12, 2022
Learn »
[...]

Without alias this it would be harder to pull off, yes.  So this particular use...
February 12, 2022
Learn »
...type but that's not much. If alias this would be removed in D, would...
February 11, 2022
Learn »
...this?

--------
final class Boxed(T) {
	T payload;
	alias payload this; // caveat: probably not a good...
244 245 246 247 248 249 250 251 252 253 254
Next ›   Last »