On Saturday, 8 September 2018 at 03:12:56 UTC, Josphe Brigmo
wrote:
auto foo(bool update = false)()
{
static if(update)
{ }
}
and the compiler, after upgrading to 2.082 from 2.080 now says:
Error: expression `update` of type `void` does not have a
boolean value
when update is
auto foo(bool update = false)()
{
static if(update)
{ }
}
and the compiler, after upgrading to 2.082 from 2.080 now says:
Error: expression `update` of type `void` does not have a boolean
value
when update is clearly a bool.
Why the hell is the compiler now thinking update is a
I have an app I'm writing using GtkD on windows. Eventually I'd
like to port it to android. Since I have never been able to
actually get anything to work on android I'm curious if there are
any demos with gtkD for android? I'm wondering if I just scrap
the idea of using it because it won't
On Friday, 7 September 2018 at 14:36:42 UTC, Russel Winder wrote:
From what I can see, processes created with std.process:
spawnProcess are not terminated when the creating process
terminates, i.e. it seems Config.detached is the default for
these process.
Is there a way of all spawned
import std.stdio, std.variant;
class Wrapper(Interface, Wrapped) : Interface
{
import std.traits;
Wrapped wrapped;
static foreach (member; __traits(allMembers, Interface))
{
}
}
void main()
{
}
when I try to compile this
v2.080.0
object.Error@(0):
I get it working in linux environment.
I don't know why vibe-d get linker errors on win10.
On Tuesday, 4 September 2018 at 19:40:10 UTC, JN wrote:
On Tuesday, 4 September 2018 at 19:23:16 UTC, SrMordred wrote:
Most C++ game related projects uses GLM as they default
math/vector lib (even if not using opengl).
In D we have (that I found):
gfm.math -
On Fri, 2018-09-07 at 16:05 +, Dr.No via Digitalmars-d-learn wrote:
>
[…]
> You also can use WINAPI's job object. It will close the registred
> process, even if the application exit abruptly. I have, by now,
> only a link to a C# example how do that but I believe you can
> convert to D
On Fri, 2018-09-07 at 15:53 +, Andrea Fontana via Digitalmars-d-learn
wrote:
>
[…]
> void main()
> {
>
> ...
> auto yourpid = spawnProcess(...);
> scope(exit) kill(yourpid, SIGINT); // Or SIGKILL :)
> // Or: scope(exit) wait(yourpid);
> ...
> }
>
Nice thought, but the spawn is deep in the
On Friday, 7 September 2018 at 16:20:40 UTC, MamoKupe wrote:
marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
Package recipe format (sdl/json) [json]: d
Invalid format, "d", enter either "sdl" or "json".
Package recipe format (sdl/json) [json]:
Name [bibe]:
Description [A minimal D application.]:
On 08/09/2018 4:20 AM, MamoKupe wrote:
marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
Package recipe format (sdl/json) [json]: d
Invalid format, "d", enter either "sdl" or "json".
Package recipe format (sdl/json) [json]:
Name [bibe]:
Description [A minimal D application.]:
Author name [Marcin]:
Whats wrong with vibe-d? It cant be linked?
marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
Package recipe format (sdl/json) [json]: d
Invalid format, "d", enter either "sdl" or "json".
Package recipe format (sdl/json) [json]:
Name [bibe]:
Description [A minimal D application.]:
Author name [Marcin]:
License [proprietary]:
Copyright string
On Friday, 7 September 2018 at 14:36:42 UTC, Russel Winder wrote:
From what I can see, processes created with std.process:
spawnProcess are not terminated when the creating process
terminates, i.e. it seems Config.detached is the default for
these process.
Is there a way of all spawned
On Friday, 7 September 2018 at 14:36:42 UTC, Russel Winder wrote:
From what I can see, processes created with std.process:
spawnProcess are not terminated when the creating process
terminates, i.e. it seems Config.detached is the default for
these process.
Is there a way of all spawned
On Friday, 7 September 2018 at 14:36:18 UTC, rikki cattermole
wrote:
On 08/09/2018 2:29 AM, Orfeo wrote:
==> And why (maybe a silly question) `-dip1000` breaks my
project so badly without warning..
DIP 1000 is an experimental addition to D, that is yet to be
complete.
It is a compiler
From what I can see, processes created with std.process: spawnProcess are not
terminated when the creating process terminates, i.e. it seems Config.detached
is the default for these process.
Is there a way of all spawned processes being terminated on main termination?
--
Russel.
On 08/09/2018 2:29 AM, Orfeo wrote:
==> And why (maybe a silly question) `-dip1000` breaks my project so
badly without warning..
DIP 1000 is an experimental addition to D, that is yet to be complete.
It is a compiler switch for a reason, it isn't ready for usage, only
some experimentation.
Sorry, I pressed send too quickly
On Friday, 7 September 2018 at 14:04:47 UTC, Orfeo wrote:
I've a project that link FuzzyCopy [1], that was compiled
without problems.
So I add FuzzyCopy library [1], I update dmd, then:
==> I've a project that was compiled without problems.
So I add
I wanted to highlight a problem that drove me crazy.
I've a project that link FuzzyCopy [1], that was compiled without
problems.
So I add FuzzyCopy library [1], I update dmd, then:
```
$ dmd --version
DMD64 D Compiler v2.082.0
Copyright (C) 1999-2018 by The D Language Foundation, All Rights
On Friday, 7 September 2018 at 10:17:47 UTC, Nicholas Wilson
wrote:
On Friday, 7 September 2018 at 06:45:32 UTC, Sobaya wrote:
[...]
You're missing an "m" in "nvvm", dunno if that will fix it.
[...]
I'll be adding these to DCompute soon (probably Sunday),
LLVM7.0 has just been released
On Friday, 7 September 2018 at 06:45:32 UTC, Sobaya wrote:
Sorry for being late for reply.
I'm using CUDA for back-end.
So you mean if required function is "cos",
pragma(LDC_intrinsic, "llvm.nvv.cos")
T cos(T a);
Is it right?
You're missing an "m" in "nvvm", dunno if that will fix it.
I
On Friday, 31 August 2018 at 13:30:10 UTC, Nicholas Wilson wrote:
On Thursday, 30 August 2018 at 10:34:33 UTC, Sobaya wrote:
On Monday, 27 August 2018 at 12:47:45 UTC, Nicholas Wilson
wrote:
On Monday, 27 August 2018 at 09:57:18 UTC, Sobaya wrote:
On Monday, 27 August 2018 at 09:41:34 UTC,
23 matches
Mail list logo