October 18 Issues » [Issue 24820] Associative arrays do not correctly handle keys with copy constructors | |||
|---|---|---|---|
| |||
...been
```
void opAssign()(auto ref S rhs)
{
writefln("Assigning %s, count(%s) to %s, count... | |||
October 18 Issues » [Issue 24820] New: Associative arrays do not correctly handle keys with copy constructors | |||
|---|---|---|---|
| |||
...copyConstructed;
++count.refCount;
writefln("Copy Constructing: %s, count(%s)", i, count);
}
~this()
{
writefln("Destroying: %s... | |||
October 12 Learn » Scope & Structs | |||
|---|---|---|---|
| |||
...STEP2
struct//*/
Foo {
this(int i) {
i.writefln!"Object %s is created...";
}
~this() {
writeln("Object... | |||
October 10 DIP Ideas » Re: Implicit cast primitive type construction | |||
|---|---|---|---|
| |||
...variant;
void main()
{
T u; R v;
writefln("%d : %d", u.sizeof,
(true ? u : v... | |||
October 03 Learn » Re: Wrapper for PAM | |||
|---|---|---|---|
| |||
...SUCCESS)
{
pam_strerror(pamh, retval).to!string.writefln!"pam_start: %s";
return 1;
}
retval = pam... | |||
October 03 Learn » Wrapper for PAM | |||
|---|---|---|---|
| |||
...toStringz, &conv, &pamh);
if (retval != PAM_SUCCESS) {
writefln("pam_start: %s", pam_strerror(pamh, retval... | |||
September 23 General » Re: Proposed Changes to the Range API for Phobos v3 | |||
|---|---|---|---|
| |||
...auto ref Args args) {
import std: forward, writefln;
import std.datetime.stopwatch: StopWatch, AutoStart;
auto... | |||
September 18 General » Re: Did you know; we need this operator! | |||
|---|---|---|---|
| |||
...captures[1];
string value = matches.captures[2];
writefln("\"%s\": %s", key, value);
Item[key] = value... | |||
September 11 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...assert(echo2("T $i, b, ${i-2}") == "writefln(\"T \", i, \", b, \", (i-2));\n");
```
It... | |||
September 09 Learn » Re: How to Humanize Numerical Input|Output | |||
|---|---|---|---|
| |||
...can use separators using writefln:
```d
writefln("%,d", 123987); // 123,987
writefln("%,?d", '_', 123987); // 123... | |||
Copyright © 1999-2021 by the D Language Foundation