July 31, 2021 General » Re: Inline imports redivivus | |||
|---|---|---|---|
| |||
...use a leading dot to disambiguate... .foo:bar; // not a label std.datetime:SysTime; // already... | |||
July 30, 2021 General » Re: Inline imports redivivus | |||
|---|---|---|---|
| |||
...goto` labels, so `foo:bar;` could be either (a) the statement `bar;` with the label... | |||
July 29, 2021 General » Re: Diagnostics for redundant qualifiers | |||
|---|---|---|---|
| |||
...safe { @safe void test(); }
@safe: @safe void bar();
This is quite deliberate. It's the... | |||
July 28, 2021 General » Re: @system blocks and safer @trusted (ST) functions | |||
|---|---|---|---|
| |||
...in, maybe like...
@system (int[] foo, float bar) { ... }
unsafe blocks could be lowered to a... | |||
July 27, 2021 Issues » [Issue 22150] New: TypeInfo_Class names aren't unique, leading to botched equality semantics | |||
|---|---|---|---|
| |||
...auto bar()
{
struct S {}
return new Foo!S();
}
auto f = foo();
auto b = bar();
// both... | |||
July 27, 2021 Issues » [Issue 22149] New: TypeInfo_Struct names aren't unique, leading to botched equality semantics | |||
|---|---|---|---|
| |||
...S();
}
auto bar()
{
struct S {}
return Foo!S();
}
auto f = foo();
auto b = bar();
// both... | |||
July 25, 2021 General » Re: @system blocks and safer @trusted (ST) functions | |||
|---|---|---|---|
| |||
Consider this...
int foo() { return 42; }
void bar()
{
int[2] what;
if (foo() == 24)
{
what... | |||
July 23, 2021 Learn » Cannot always deduce template arguments when using implicitly cast array literals | |||
|---|---|---|---|
| |||
...L left, const R right) {
// Function
}
void bar(uint L)(float[L] l) {
// Function
}
void... | |||
July 23, 2021 Learn » Generate docs for generated code? | |||
|---|---|---|---|
| |||
...D
string fooImpl = q{
/// Bar does fancy things.
const void bar() { /*do something fancy*/ }
};
/// This... | |||
July 22, 2021 General » Re: Enum literals, good? bad? what do you think? | |||
|---|---|---|---|
| |||
...enum Bar {
case a
case b
}
func test(_ : Foo) { print("test a"); }
func test(_ : Bar... | |||
Copyright © 1999-2021 by the D Language Foundation