Re: Error: expression `update` of type `void` does not have a boolean value

2018-09-07 Thread Alex via Digitalmars-d-learn
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

Error: expression `update` of type `void` does not have a boolean value

2018-09-07 Thread Josphe Brigmo via Digitalmars-d-learn
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

GTKD for android?

2018-09-07 Thread Josphe Brigmo via Digitalmars-d-learn
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

Re: std.process: spawnProcess

2018-09-07 Thread Basile B. via Digitalmars-d-learn
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

compiler asserts

2018-09-07 Thread Josphe Brigmo via Digitalmars-d-learn
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):

Re: How to use listener.d example?

2018-09-07 Thread Marcin via Digitalmars-d-learn
I get it working in linux environment. I don't know why vibe-d get linker errors on win10.

Re: C++ GLM(OpenGL Mathematics) D Equivalent.

2018-09-07 Thread WhatMeWorry via Digitalmars-d-learn
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 -

Re: std.process: spawnProcess

2018-09-07 Thread Russel Winder via Digitalmars-d-learn
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

Re: std.process: spawnProcess

2018-09-07 Thread Russel Winder via Digitalmars-d-learn
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

Re: [vibe-d/dub] Lin

2018-09-07 Thread MamoKupe via Digitalmars-d-learn
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.]:

Re: [vibe-d/dub] Lin

2018-09-07 Thread rikki cattermole via Digitalmars-d-learn
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]:

Re: [vibe-d/dub] Lin

2018-09-07 Thread MamoKupe via Digitalmars-d-learn
Whats wrong with vibe-d? It cant be linked?

[vibe-d/dub] Lin

2018-09-07 Thread MamoKupe via Digitalmars-d-learn
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

Re: std.process: spawnProcess

2018-09-07 Thread Dr.No via Digitalmars-d-learn
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

Re: std.process: spawnProcess

2018-09-07 Thread Andrea Fontana via Digitalmars-d-learn
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

Re: dip1000 issue

2018-09-07 Thread Orfeo via Digitalmars-d-learn
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

std.process: spawnProcess

2018-09-07 Thread Russel Winder via Digitalmars-d-learn
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.

Re: dip1000 issue

2018-09-07 Thread rikki cattermole via Digitalmars-d-learn
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.

Re: dip1000 issue

2018-09-07 Thread Orfeo via Digitalmars-d-learn
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

dip1000 issue

2018-09-07 Thread Orfeo via Digitalmars-d-learn
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

Re: How to use math functions in dcompute?

2018-09-07 Thread Sobaya via Digitalmars-d-learn
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

Re: How to use math functions in dcompute?

2018-09-07 Thread Nicholas Wilson via Digitalmars-d-learn
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

Re: How to use math functions in dcompute?

2018-09-07 Thread Sobaya via Digitalmars-d-learn
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,