May 11, 2021 General » Re: Semicolon? | |||
|---|---|---|---|
| |||
...function bar(x) { return x; }
function baz(x) { return x; }
function foo(aaaaaaaaaaaaaaaaaaaaaaaaaaaa) {
return bar... | |||
May 11, 2021 General » Re: Semicolon? | |||
|---|---|---|---|
| |||
function foo()
{
return
{
foo: "bar"
}
}
console.log(foo())
What does this log? "undefined", obviously, what... | |||
May 10, 2021 General » Type inference for default function / method arguments? | |||
|---|---|---|---|
| |||
...haxe
static function test(i = 12, s = "bar") {
return "i: " + i + ", s: " + s;
}
...
$type(test... | |||
May 10, 2021 Issues » [Issue 21911] New: dmd compiler segfault with std.container array, templated struct, and static if | |||
|---|---|---|---|
| |||
...array;
struct Foo(T) {
struct Bar {
T value;
}
Array!Bar bar;
this(string str) {
static... | |||
May 10, 2021 Learn » Is it possible to run a single unittest without an external library? | |||
|---|---|---|---|
| |||
...I... source/foo.d` will run unittests bar.d if it is imported into foo... | |||
May 08, 2021 Learn » Re: Without multiples inheritance, how is this done? | |||
|---|---|---|---|
| |||
...Implement foo stuff
}
class baseFooBar : baseFoo{
// Implement bar stuff
}
class FooBar : baseFooBar{
// Do your FooBar... | |||
May 08, 2021 Issues » [Issue 21908] New: protected struct static opCall from mixin template not available from child class | |||
|---|---|---|---|
| |||
...works
d.bar.emit(); // this is ok because it our same module
d.bar.connect... | |||
May 07, 2021 Issues » [Issue 21901] New: [etc.c.odbc.sql] | |||
|---|---|---|---|
| |||
...sys node in the Library Reference side bar tree. As this is generated using Ddoc... | |||
May 02, 2021 Learn » Re: Since dmd 2.096.0: import `x.t` is used as a type | |||
|---|---|---|---|
| |||
...documentation
```
// foo-bar.d
module foo_bar;
void foo ()
{
}
// main.d
import foo_bar;
void... | |||
May 01, 2021 Learn » Fake IFTI-compatible struct constructors | |||
|---|---|---|---|
| |||
...Bar(T : float) { alias Bar = Bar!(T, 0); }
template Bar(T : int) { alias Bar = Bar... | |||
Copyright © 1999-2021 by the D Language Foundation