Hey,
This is my first time writing in the D forums!
I have an application written in D that runs as a linux daemon
(some python service script is in charge of running and
daemonizing it).
This "agent" works similar to docker - a service that accepts
commands and runs in the background, and st
OK well, seems like calling _exit() (instead of exit()) did the
trick. Thanks for the help!
I think the following example is legitimate code that should work:
struct S1 {
void foo() {
writeln("S1.foo()");
}
void foo(ulong x) {
writefln("S1.foo(%d)", x);
}
}
struct S2 {
S1 s;
alias s this;
void foo(string str) {
writeln("S2.foo(%s)",
I see this is a recurring rant (I apologize if this is a
repeating topic, I'm new to the forums). Here's an example of
something that should be simple in D but isn't:
enum string PATTERN = "abcd";
immutable char[10] repeatingPattern =
PATTERN.cycle().takeExactly(10).array();
The fact that fr
On Thursday, 15 June 2017 at 15:50:42 UTC, Seb wrote:
On Thursday, 15 June 2017 at 15:47:54 UTC, Jonathan Shamir
wrote:
Also note I can't cast to char[] in compile time? What's the
reason for that?
Have a look at:
https://dlang.org/phobos/std_utf.html#byCodeUnit
https://dlang.org/phobos/std_u
Hey,
This code is from std.process:
if (!(config & Config.inheritFDs))
{
import core.sys.posix.sys.resource;
rlimit r;
getrlimit(RLIMIT_NOFILE, &r);
foreach (i; 3 .. cast(int) r.rlim_cur) close(i);
}
This is a close-loop to
https://dlang.org/htod.html
I click download and get an exe!
And in the bugs section:
No linux version.
I'll start with the productive part. If anyone can point me out
to the sources of htod I would love to compile for linux + osx.
Any task seems more attractive to me than manually converting
On Tuesday, 22 August 2017 at 15:24:54 UTC, ixid wrote:
On Tuesday, 22 August 2017 at 15:14:33 UTC, Jonathan Shamir
wrote:
various.
Out of interest did you pick up D before or after joining the
start up? If before did you introduce D to them or were they
already using it?
I work at weka.io
On Tuesday, 22 August 2017 at 15:48:17 UTC, Kagamin wrote:
Other possibilities can be dstep or cpp2d from visuald project.
Though don't know if the latter can work on linux.
So I guess someone should pick one and put it on the site. And
make sure the source code is available. Having a link to
On Tuesday, 22 August 2017 at 17:15:27 UTC, Walter Bright wrote:
You're right about htod, and it's on me. It's built out of the
DMC++ front end. I haven't gotten around yet to releasing it as
open source.
We can discuss possible ways of implementing htod.
Instead, I'd rather discuss how we c
10 matches
Mail list logo