Re: cmake-d and gdc/gdmd compiler

2017-04-04 Thread Dragos Carp via Digitalmars-d-learn
On Tuesday, 4 April 2017 at 18:42:45 UTC, timvol wrote: Hi guys, I'm trying to cross-compile a project using CMake and gdc (or better: the gdmd port). My CMakeLists-file is the following: For cross-compiling, CMake uses a so called "toolchain" file [1] where you define the system paths sim

cmake-d and gdc/gdmd compiler

2017-04-04 Thread timvol via Digitalmars-d-learn
Hi guys, I'm trying to cross-compile a project using CMake and gdc (or better: the gdmd port). My CMakeLists-file is the following: cmake_minimum_required(VERSION 2.8.1) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake-d") SET(CMAKE_SYSTEM_NAME Linux) project(myapp D)

Re: Testing D codes

2017-04-04 Thread Kagamin via Digitalmars-d-learn
Same as anywhere else. Integration test is a test that connects to a deployed system, which is different from unittest only in philosophical aspect.

Re: Covert a complex C header to D

2017-04-04 Thread Ali Çehreli via Digitalmars-d-learn
On 04/02/2017 02:43 PM, biocyberman wrote: > khash.h > (http://attractivechaos.github.io/klib/#Khash%3A%20generic%20hash%20table) > is a part of klib library in C. I want to covert it to D in the process > of learning deeper about D. These are macros used by the library developer to generate li

Testing D codes

2017-04-04 Thread Russel Winder via Digitalmars-d-learn
Are there any resources dealing with how to do integration and system testing of D codes? Google invariably just leads me to unit testing. -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@e

Re: OT: It is convert, not covert

2017-04-04 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 4 April 2017 at 09:37:12 UTC, biocyberman wrote: On Tuesday, 4 April 2017 at 05:29:42 UTC, Ali Çehreli wrote: Covert has a very different meaning. :) Ali Thanks Ali. My fingers argued they are the same :) And I can't find a way to edit my post after posting. I would love to hav

Re: Write file at compile time?

2017-04-04 Thread Stefan Koch via Digitalmars-d-learn
On Monday, 3 April 2017 at 21:20:41 UTC, Inquie wrote: On Monday, 3 April 2017 at 19:34:36 UTC, Adam D. Ruppe wrote: [...] Because it the code doesn't compile one has to copy and paste the pragma output to a d file and compile it to find the errors. It is useful to help debug mixins. Since D

Re: OT: It is convert, not covert

2017-04-04 Thread biocyberman via Digitalmars-d-learn
On Tuesday, 4 April 2017 at 05:29:42 UTC, Ali Çehreli wrote: Covert has a very different meaning. :) Ali Thanks Ali. My fingers argued they are the same :) And I can't find a way to edit my post after posting. I would love to have your input. I am revisited your book several times to read

Re: opDispatch/template get this

2017-04-04 Thread John Chapman via Digitalmars-d-learn
On Monday, 3 April 2017 at 21:49:07 UTC, Inquie wrote: I am using opDispatch to wrap function calls Error: 'this' is only defined in non-static member functions, not opDispatch!"foo" class X { auto localfoo() { return 3; } template opDispatch(string name, Args...) { static