Code:
import std.concurrency;
import core.thread;
//import vibe.http.client; // If uncommented this line,
the thread "worker" does not start
void worker() {
foreach (i; 0 .. 5) {
Thread.sleep(500.msecs);
writeln(i, " (worker)");
}
It is your profile?
http://www.cyberforum.ru/members/491746.html
The next version https://bpaste.net/show/dc3c5f10f2ca
I use https://github.com/dsimcha/Rational/blob/master/rational.d
I want to do it:
auto c = new Currencies!Rational.rational.Rational!(BigInt);
where Rational.rational.Rational it is std.rational.Rational
I get the error:
Error: template
https://github.com/acmeism/RosettaCodeData/blob/master/Task/Arithmetic-Rational/D/arithmetic-rational.d
With eris lib some problems, the first error:
.../.dub/packages/eris-0.0.1/eris/integer/digits.d(241): Error:
cannot implicitly convert expression (digits.length) of type
ulong to int
What can I import to use rational numbers?
I found it
Thanks. Do I need to use rational fractions for the Currencies
class?
On Saturday, 31 January 2015 at 15:02:09 UTC, Colin wrote:
Maybe you can articulate it in one post what this class is
trying to achieve?
Maybe this?
https://github.com/andersonpd/decimal/blob/master/decimal/bigfloat.d
The main thing is not to lose currency in calculations that use
arithmetic.
The next version, which does not work:
https://bpaste.net/show/b9c85de68d07
I want to understand the correct architecture of the class.
Maybe I need good examples on C++, for this class, because a lot
of examples on C++.
I am looking for not only free solutions.
The next version
https://bpaste.net/show/9468f24d9df0
How to get amount of digit after point in a double for to get
integer from a double?
assert(amountAfterPoint(1.456) == 3);
assert(amountAfterPoint(0.6) == 5);
without to!string
What do I need to learn?
module axfinance.api.currencies;
import std.array, std.stdio, std.system, std.bigint, std.conv;
class Currencies
{
public:
this(ulong pf)
{
exponent(pf);
}
bool integer(BigInt pb)
{
Alexandrescu The_D_Programming_Language
page 264: 7.1.10 Subtyping with structs. The @disable Attribute
import std.stdio;
...
unittest {
auto a = Final!Widget(new Widget);
a.print(); // Fine, just print a
auto b = a; // Fine, a and b are bound to the same Widget
a = b; // Error!
//
Hi ppl!
When dub builds the project, he tries to load the
http://code.dlang.org/packages/libevent/2.0.1+2.0.16.zip file,
and dub gives out this error:
Running DUB build
dub build
@ /mnt/hdd2_3/ftp/workspace_eclipse/axt-d-base-application
The following changes will
On Wednesday, 26 November 2014 at 10:01:32 UTC, Suliman wrote:
This is an issue with your version of dub with a buggy url
encoding method. Download the latest at code.dlang.org
http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/22266/
thanks, up-dating to version 0.9.22
OS WinXP
netstat reports that the socket is in the TIME_WAIT or CLOSE_WAIT
state.
Hi ppl! I want to scan the local network to find nodes with open
80 port.
code:
import core.thread, core.atomic;
import std.stdio, std.system, std.file, std.conv, std.datetime,
std.socket, std.socketstream, std.stream;
import vibe.core.log;
import vibe.d;
void main()
{
ushort port =
Or the program doesn't find the address after IP 192.168.110.34...
23 matches
Mail list logo