October 09, 2022 General » Re: mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
...of the specific reasons for the mixin template, if it warned there it would be... | |||
October 09, 2022 General » Re: mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
Especially, this kind of `overrides` is not the same as the class virtual method override... | |||
October 09, 2022 General » Re: mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
Especially, this kind of `overrides` is not the same as the class virtual method override... | |||
October 09, 2022 General » Re: mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
OK, it's chosen behavior, that's fine. BUT, as I said, can the compiler... | |||
October 09, 2022 General » Re: mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
...This is documented behavior: And then: https://dlang.org/spec/template-mixin.html#mixin_scope | |||
October 09, 2022 General » Re: mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
...attribute of the same name:
```
import std;
template Foo() {
int a;
void foo() {writeln(a... | |||
October 09, 2022 General » mixin template silently `override` without even a warning message! | |||
|---|---|---|---|
| |||
...I just found another problem:
```
import std;
template Foo() {
void foo() {writeln("F");}
void bar... | |||
October 09, 2022 Issues » [Issue 23400] New: [REG 2.099] Can't format enum value whose base type has non-const opEquals | |||
|---|---|---|---|
| |||
...phobos/std/format/write.d(1239): Error: template instance `std.format.internal.write.formatValueImpl!(NullSink... | |||
October 08, 2022 Learn » Explicit cast to @system? | |||
|---|---|---|---|
| |||
...by explicitly passing the type as a template parameter;
```
void main()
{
foo!(void function() @system... | |||
October 07, 2022 General » Re: So how do you create an associative array with an immutable value, anyways? | |||
|---|---|---|---|
| |||
...immutable` expression `*p` onlineapp.d(5): Error: template instance `object.require!(int, immutable(int))` error... | |||
Copyright © 1999-2021 by the D Language Foundation