June 08 General » Re: The Future of D Runtime | |||
|---|---|---|---|
| |||
...think a go/swift apooch of an std making a non-c api will probably... | |||
June 08 Learn » Re: How to generate a random number from system clock as seed | |||
|---|---|---|---|
| |||
...overload is used in the 2nd example. https://dlang.org/phobos/std_random.html#.uniform | |||
June 08 Learn » Re: How to generate a random number from system clock as seed | |||
|---|---|---|---|
| |||
```d
import std;
void main()
{
{
auto rng = Random(42);
auto result = generate!(() => uniform(0, 10... | |||
June 08 Issues » [Issue 24591] New: [std.random] docs bad at communicating trivail usecase | |||
|---|---|---|---|
| |||
...cgi?id=24591
Issue ID: 24591
Summary: [std.random] docs bad at communicating trivail usecase... | |||
June 08 Learn » Re: How to generate a random number from system clock as seed | |||
|---|---|---|---|
| |||
...is really bad the docs/api for std.time/random are bad if you need... | |||
June 08 Learn » Re: Trying to call some C code using Extern(C) but got unexpected linker error | |||
|---|---|---|---|
| |||
...should work: ```d // .d file import std.stdio; import std.conv; import test; void main... | |||
June 08 Learn » Trying to call some C code using Extern(C) but got unexpected linker error | |||
|---|---|---|---|
| |||
...from C!\n"); } ``` ``` // .d file import std.stdio; import std.conv; import test; void main... | |||
June 07 Learn » modInverse & powMod | |||
|---|---|---|---|
| |||
...not these? * [std.mathspecial.logmdigammaInverse](https://dlang.org/phobos/std_mathspecial.html) * [std.numeric.inverseFft... | |||
June 06 General » Re: Object.toString, toHash, opCmp, opEquals | |||
|---|---|---|---|
| |||
...type `onlineapp.F`
import std.algorithm, std.stdio, std.file, std.range;
writeln("c=", c... | |||
June 06 Learn » Unintentional sharing? | |||
|---|---|---|---|
| |||
...auto b = new Bar();
}
void
main() {
import std.stdio : writeln;
auto f1 = new Foo(), f2... | |||
Copyright © 1999-2021 by the D Language Foundation