On Tuesday, 15 August 2017 at 04:44:25 UTC, LeqxLeqx wrote:
Hello!
I'm having issues with the format function.
My program is as follows:
import std.format;
import std.stdio;
int main ()
{
auto s = format!"%s is %s"("Pi", 3.14);
writeln(s); // "Pi is 3.14";
}
and when
On Friday, 11 August 2017 at 22:21:53 UTC, Mr. Pib wrote:
Does D have a persistent storage somewhere? I'd like something
easy to use that allows me to load and save settings to disk in
between executions of the program. I want to specify the
variable to be saved or loaded and a default value.
On Friday, 11 August 2017 at 17:10:14 UTC, bitwise wrote:
On Friday, 11 August 2017 at 17:02:20 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
mix
On Friday, 11 August 2017 at 17:12:22 UTC, bitwise wrote:
On Friday, 11 August 2017 at 17:06:40 UTC, HyperParrow wrote:
[...]
int i;
struct Foo
{
template ToMix(){ ~this(){i;}}
~this(){++i;}
mixin ToMix;
}
void main()
{
Foo* foo = new Foo;
foo.__xdtor;
assert(i==3);
On Friday, 11 August 2017 at 17:02:20 UTC, HyperParrow wrote:
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
mixins while __dtor() only call the __dtor() that matches to
On Friday, 11 August 2017 at 16:53:02 UTC, bitwise wrote:
What do they do?
What's the difference?
Thanks
__xdtor() also calls the __dtor() that are mixed with template
mixins while __dtor() only call the __dtor() that matches to the
normal ~this(){}
On Thursday, 10 August 2017 at 23:38:42 UTC, Jiyan wrote:
On Thursday, 10 August 2017 at 22:27:44 UTC, HyperParrow wrote:
On Thursday, 10 August 2017 at 20:48:23 UTC, Jiyan wrote:
Hey,
i get the following errors when i try to use dlangui, by just
importing the package i get a lot of errors whi
On Thursday, 10 August 2017 at 20:07:35 UTC, Steven Schveighoffer
wrote:
On 8/10/17 3:36 PM, Johnson Jones wrote:
when using T[string], hashing is used. Computing the hash is
slow(relatively speaking).
Does D cache the hashes? Strings are immutable so there is
absolutely no reason why the has
On Thursday, 10 August 2017 at 20:48:23 UTC, Jiyan wrote:
Hey,
i get the following errors when i try to use dlangui, by just
importing the package i get a lot of errors which look like:
function std.xml.Item.opEquals does not override any function,
did you mean to override 'object.Object.opEqua