Search

February 08, 2021
Issues »
...class Subclass: Base {
  void bar() { foo(); }
}

void main() {
    (new Subclass).bar();
}


I wonder why case...
February 06, 2021
Learn »
...d` with `module foo.bar.totally.different;` and `import foo.bar.totally.different` and it...
February 06, 2021
Learn »
...enumValue);

Then it also outputs foo and bar. So, why would the behavior of op...
February 06, 2021
Learn »
...following enum:

enum A {x="foo", y="bar"}

And now, I just want to print...
February 04, 2021
General »
...convert it to string.

int bar;
auto item = i"foo ${bar}";

typeof(item) == AliasSeq!(interp...
February 04, 2021
General »
...fun!(i"foo ${bar+5}");
======================
(int __expr0) {
  return fun!("foo ", __expr0);
}(bar+5);

Which works...
February 04, 2021
General »
...WHERE bar = ${baz}");
```

instead of

```
auto result = connection.execute(i"SELECT * FROM foo WHERE bar...
February 04, 2021
General »
...name = "foo";
mixin(iq{ void {name}() {bar} });


Is {bar} interpolation or a function body?

With...
February 04, 2021
General »
...nodiscard(int) foo();
    int bar()
    auto a = foo();
    auto b = bar();
    b = a; // Error: cannot...
February 04, 2021
General »
...is pretty useless.

int bar;
fun!(i"foo {$bar+5}"); // bar cannot be evaluated at...
89 90 91 92 93 94 95 96 97 98 99 100
Next ›   Last »