June 01 General » Re: Floating point precision with writeln | |||
|---|---|---|---|
| |||
```d
import std;
void main()
{
writefln("%1.14f", std.math.PI);
}
``` | |||
May 31 Issues » [Issue 24575] New: sumtype fails to match lambdas with anonymous arguments | |||
|---|---|---|---|
| |||
...com
Reporter: crazymonkyyy@gmail.com
```d
import std;
struct tree(T){
alias node=typeof(this... | |||
May 31 Issues » [Issue 23487] std.experimental.logger assigning FileLogger to sharedLog no longer works | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23487
Forest <forestix@nom.one> changed:
What... | |||
May 30 DIP Ideas » Re: bool concat patternmatching with switch | |||
|---|---|---|---|
| |||
...will be more readable...
```d
import std.stdio;
import std.typecons;
enum Status
{
Idle = 1... | |||
May 30 Genel » Re: Aralıklar (ranges) ile ilgili bir sorunu çözmek | |||
|---|---|---|---|
| |||
...da yapıştırayım:
```d
import std.algorithm;
import std.range;
import std.stdio;
void main()
{
auto... | |||
May 30 DIP Ideas » Re: Pattern matching: Callback For Matching Type | |||
|---|---|---|---|
| |||
...t)
{
return t.match!(
(Fahrenheit f) => true,
_ => false
);
}
```
https://dlang.org/phobos/std_sumtype.html | |||
May 29 Genel » BitFlags için bir sarma | |||
|---|---|---|---|
| |||
...kalorili değil :)
```d
struct Flags(T)
{
import std.typecons : BitFlags;
BitFlags!(E, Yes.unsafe) flags... | |||
May 28 Learn » Re: Get milliseconds from time and construct time based on milliseconds | |||
|---|---|---|---|
| |||
...0)) + milliseconds.msecs; ``` https://dlang.org/phobos/std_datetime_systime.html#unixTimeToStdTime https://dlang.org... | |||
May 28 Issues » [Issue 24468] stdThreadLocalLog does not print `log` and `trace` logs | |||
|---|---|---|---|
| |||
...a newcomer to Phobos logging: - Read the std.logger docs. - Create a StdForwardLogger for each... | |||
May 28 Learn » Re: Get milliseconds from time and construct time based on milliseconds | |||
|---|---|---|---|
| |||
...be what you want:
import std;
import std.datetime;
import std.stdio;
void main() {
// Get... | |||
Copyright © 1999-2021 by the D Language Foundation