December 24, 2022 Issues » [Issue 23578] New: Types are not matched to alias parameters in "is" expression | |||
|---|---|---|---|
| |||
...com
struct S(alias a)
{
}
static if (is(S!int == S!a, alias a))
pragma... | |||
December 24, 2022 Issues » [Issue 1100] Alias parameters don't accept primitive types. | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=1100 Max Samukha <maxsamukha@gmail.com> changed... | |||
December 23, 2022 Learn » Re: Confusion about `Random` | |||
|---|---|---|---|
| |||
...main()
{
init_random();
struct Atom { double num; }
alias atom = Atom* function();
atom[string] primitiveSymbols = [
"rand... | |||
December 23, 2022 General » Re: Wrapper Struct | |||
|---|---|---|---|
| |||
...T value;
this(T x)
{
value = x;
}
alias opCall this;
@property opCall() inout
{
return value... | |||
December 21, 2022 Genel » Re: @property'e ihtiyacımız olan bir durum! | |||
|---|---|---|---|
| |||
...p2);
}
struct Bar(T) {
private T bar;
alias opCall this;
@property opCall() inout
{
return bar... | |||
December 21, 2022 General » Wrapper Struct | |||
|---|---|---|---|
| |||
...d
struct W1(T) {
private T value;
alias getset this;
@property T getset(T v... | |||
December 20, 2022 Issues » [Issue 23272] [REG2.099] CTFE error of typeid comparison == | |||
|---|---|---|---|
| |||
...to:
---
struct SumType
{
int cases;
}
auto caseOfTemplated(alias func, T)(T s)
{
return func(s... | |||
December 20, 2022 Issues » [Issue 23272] [REG2.099] CTFE error of typeid comparison == | |||
|---|---|---|---|
| |||
...reduction of the original.
---
alias AliasSeq(TList...) = TList;
template EnumMembers(E)
{
alias EnumMembers = AliasSeq;
static... | |||
December 20, 2022 Genel » Re: @property'e ihtiyacımız olan bir durum! | |||
|---|---|---|---|
| |||
...return 42;
}
alias foo this;
}
void main() {
writeln(S());
}
Evet, olay ondan ibaret: 'alias this... | |||
December 20, 2022 Genel » Re: @property'e ihtiyacımız olan bir durum! | |||
|---|---|---|---|
| |||
...value;
this(Type i) {
value = i;
}
alias opCall this;
alias opAssign = opCall;
@property opCall(Type... | |||
Copyright © 1999-2021 by the D Language Foundation