February 08, 2021 Issues » [Issue 21500] public import in mixin template in module a fails when module b imports a. | |||
|---|---|---|---|
| |||
...class Subclass: Base {
void bar() { foo(); }
}
void main() {
(new Subclass).bar();
}
I wonder why case... | |||
February 06, 2021 Learn » Re: unittest compiles w/o error though module file is not named after the module | |||
|---|---|---|---|
| |||
...d` with `module foo.bar.totally.different;` and `import foo.bar.totally.different` and it... | |||
February 06, 2021 Learn » Re: Can someone explain this? | |||
|---|---|---|---|
| |||
...enumValue); Then it also outputs foo and bar. So, why would the behavior of op... | |||
February 06, 2021 Learn » Can someone explain this? | |||
|---|---|---|---|
| |||
...following enum:
enum A {x="foo", y="bar"}
And now, I just want to print... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...convert it to string.
int bar;
auto item = i"foo ${bar}";
typeof(item) == AliasSeq!(interp... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...fun!(i"foo ${bar+5}");
======================
(int __expr0) {
return fun!("foo ", __expr0);
}(bar+5);
Which works... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...WHERE bar = ${baz}");
```
instead of
```
auto result = connection.execute(i"SELECT * FROM foo WHERE bar... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...name = "foo";
mixin(iq{ void {name}() {bar} });
Is {bar} interpolation or a function body?
With... | |||
February 04, 2021 General » Re: Feedback Thread: DIP 1038--@nodiscard--Final Review | |||
|---|---|---|---|
| |||
...nodiscard(int) foo();
int bar()
auto a = foo();
auto b = bar();
b = a; // Error: cannot... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...is pretty useless.
int bar;
fun!(i"foo {$bar+5}"); // bar cannot be evaluated at... | |||
Copyright © 1999-2021 by the D Language Foundation