October 03 Issues » [Issue 14222] emplace implicit dynamic to static array fails | |||
|---|---|---|---|
| |||
...unittest
{
auto s0 = S([1,2,3]); //OK
import std.conv : emplace;
import std.array... | |||
October 03 General » Re: Template type inference problem | |||
|---|---|---|---|
| |||
...const(int)*
f!(const(int)*)(x, &y); // ok
}
```
I tried reversing the order to see... | |||
September 30 Learn » Re: Templates considered impressive | |||
|---|---|---|---|
| |||
...at runtime
short s = i.to!short; // OK, range check passes
enum E { a=10... | |||
September 27 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
...tried it and it seemed to work OK. Wondering if there are any good reasons... | |||
September 26 General » Re: Meaningful identifiers and other multi-token keywords | |||
|---|---|---|---|
| |||
...extern export (Type) x; // ok extern static (Type) y; // ok extern @0 (Type) z; // ok ``` | |||
September 24 DIP Development » Re: Safer D first draft | |||
|---|---|---|---|
| |||
...zero. At which point yes, can overflow. Ok, do a length check first and the... | |||
September 21 Learn » Poor Carlos does not manage to find where to eat | |||
|---|---|---|---|
| |||
...true;
}
void main()
{
TouristType1 Juan;
Juan.findPlaceToEat(); // OK Juan will not starve to death
TouristType2... | |||
September 21 DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
Ok so basically implicit conversions with optional target type. As long as it is defined... | |||
September 13 General » Re: Standard way to supply hints to branches | |||
|---|---|---|---|
| |||
Ok, thanks for the explanation. The branch predictor on CPUs defaults to a forward branch... | |||
September 13 DIP Ideas » Re: Sum Type by Struct | |||
|---|---|---|---|
| |||
...allowed: ```d void a, b; b = a; // OK :X x; :Y y = x; // error, can... | |||
Copyright © 1999-2021 by the D Language Foundation