April 03, 2023 General » Re: Trying to do alias template deduction myself. | |||
|---|---|---|---|
| |||
...v.data.writeln; } singleMatrix!T(cube); // ok assert(is(typeof(cube) == Vec3!T)); // ... alias... | |||
April 03, 2023 General » Re: Trying to do alias template deduction myself. | |||
|---|---|---|---|
| |||
...Vec3!U v){}
singleMatrix!T(cube); // ok
assert(is(typeof(cube) == Vec3!T));
// ...
alias... | |||
April 03, 2023 General » Re: Trying to do alias template deduction myself. | |||
|---|---|---|---|
| |||
...SomeOtherAlias!(Q, P) v)
{
static assert(is(P == int));
static assert(is(Q == float));
}
void... | |||
April 02, 2023 Genel » Re: Ayraçlı Birleştir | |||
|---|---|---|---|
| |||
...kaşık");
print("A","B", "C", "D", sep = " < ");
assert(sep == ", ");
} /* ÇIKTISI:
ayva-elma
bıçak, çatal, kaşık... | |||
April 02, 2023 General » Re: removing default case requirement? | |||
|---|---|---|---|
| |||
...often ends with a default case with assert(false) or similar. Or it should -- so... | |||
April 02, 2023 General » Re: removing default case requirement? | |||
|---|---|---|---|
| |||
...default: assert(0);` does. > > Yup. I like that - much better default. > Except for assert(0... | |||
April 02, 2023 General » Re: removing default case requirement? | |||
|---|---|---|---|
| |||
...like that - much better default. Except for assert(0) not providing any message. So if... | |||
April 02, 2023 General » Re: removing default case requirement? | |||
|---|---|---|---|
| |||
`dafault: assert(0);` does. | |||
April 01, 2023 Issues » [Issue 22161] importC: Support parsing C asm expressions | |||
|---|---|---|---|
| |||
...assembler code - it replaces it with an assert(0). DMD's inline assembler is derived... | |||
April 01, 2023 General » Re: removing default case requirement? | |||
|---|---|---|---|
| |||
...the default case, often I want to `assert(0)` instead. This idea would encourage not... | |||
Copyright © 1999-2021 by the D Language Foundation