Re: Problems with setting up dub for publication

2017-03-04 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 4 March 2017 at 21:14:23 UTC, solidstate1991 wrote: However, after I wrote the dub.json and try to compile it as a test, I get this output: I don't see anything in your config that jumps out at me as a potential cause of your problem (though, see below). Do you have the project

Re: Problems with setting up dub for publication

2017-03-04 Thread solidstate1991 via Digitalmars-d-learn
Replaced all the ~> with ==, now I'm getting error from dub wanting to use the alpha versions of the derelict libraries, which have minor compatibility issues with my project.

Problems with setting up dub for publication

2017-03-04 Thread solidstate1991 via Digitalmars-d-learn
My graphics engine contains two subpackages currently: -PixelPerfectEngine (the engine itself) -PixelPerfectEditor (the editor/converter, uses the engine itself to display screen data) However, after I wrote the dub.json and try to compile it as a test, I get this output: Building package

Re: In Expressions

2017-03-04 Thread Andrey via Digitalmars-d-learn
On Saturday, 4 March 2017 at 17:57:16 UTC, John Colvin wrote: but to be honest, I would just repeat myself a bit and write if (regionAlign == RegionAlign.top || regionAlign == RegionAlign.bottom) { } That's exactly what I did, just wondered - how to do such a thing. Thank's for the

Re: In Expressions

2017-03-04 Thread Meta via Digitalmars-d-learn
On Saturday, 4 March 2017 at 17:11:46 UTC, Andrey wrote: Hello, is there any way to using in expression like in python, e.g. if 4 in [1, 3, 4]: do something My code in D if (regionAlign in [RegionAlign.top, RegionAlign.bottom]) { ... } throws an error: incompatible types for

Re: Building a project with CMAKE

2017-03-04 Thread berni via Digitalmars-d-learn
On Saturday, 4 March 2017 at 10:02:15 UTC, Johan Engelen wrote: If you think you have a good testcase, it's nice for compiler devs like me to open a new thread about the difference that you found between the compilers (so that we can try and improve things). I'm not sure, if my "testcase" is

Re: In Expressions

2017-03-04 Thread John Colvin via Digitalmars-d-learn
On Saturday, 4 March 2017 at 17:11:46 UTC, Andrey wrote: Hello, is there any way to using in expression like in python, e.g. if 4 in [1, 3, 4]: do something My code in D if (regionAlign in [RegionAlign.top, RegionAlign.bottom]) { ... } throws an error: incompatible types for

In Expressions

2017-03-04 Thread Andrey via Digitalmars-d-learn
Hello, is there any way to using in expression like in python, e.g. if 4 in [1, 3, 4]: do something My code in D if (regionAlign in [RegionAlign.top, RegionAlign.bottom]) { ... } throws an error: incompatible types for (((cast(Widget)this).regionAlign()) in ([top, bottom])):

Re: Floating point rounding

2017-03-04 Thread ag0aep6g via Digitalmars-d-learn
On 03/03/2017 05:39 PM, ag0aep6g wrote: dmd generates SSE instructions for floating point math. FloatingPointControl only minds the control register for the FPU. But SSE instructions are not affected by that. SSE has a separate control register: MXCSR. I've filed an issue:

Re: Building a project with CMAKE

2017-03-04 Thread Johan Engelen via Digitalmars-d-learn
On Friday, 3 March 2017 at 22:06:11 UTC, berni wrote: On Friday, 3 March 2017 at 20:10:25 UTC, Ali Çehreli wrote: Which would put gdc in between the two. Is your experience different? Actually, I've got not much experience. A few weeks ago I ran a test where ldc was in between dmd and gdc.