local dub dependencies - relative paths, copyFiles, etc

2019-05-03 Thread DanielG via Digitalmars-d-learn
First issue: I have a dub project (executable) that's dependent on another local dub project (library). It's cross-platform but I'm having this problem in Windows at the moment... My D library links against a win32 DLL/LIB, and I'm specifying that in the dub.sdl for the library, relative to

Re: Any full feature xml library available?

2019-05-03 Thread Domain via Digitalmars-d-learn
On Friday, 3 May 2019 at 21:07:29 UTC, H. S. Teoh wrote: On Fri, May 03, 2019 at 09:56:56PM +0100, Russel Winder via Digitalmars-d-learn wrote: On Thu, 2019-05-02 at 09:28 -0700, H. S. Teoh via Digitalmars-d-learn wrote: > On Thu, May 02, 2019 at 05:23:29PM +0100, Russel Winder via >

Re: Any full feature xml library available?

2019-05-03 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, May 03, 2019 at 09:56:56PM +0100, Russel Winder via Digitalmars-d-learn wrote: > On Thu, 2019-05-02 at 09:28 -0700, H. S. Teoh via Digitalmars-d-learn > wrote: > > On Thu, May 02, 2019 at 05:23:29PM +0100, Russel Winder via > > Digitalmars-d-learn wrote: > > [...] > > > There are

Re: Any full feature xml library available?

2019-05-03 Thread Russel Winder via Digitalmars-d-learn
On Thu, 2019-05-02 at 09:28 -0700, H. S. Teoh via Digitalmars-d-learn wrote: > On Thu, May 02, 2019 at 05:23:29PM +0100, Russel Winder via > Digitalmars-d-learn wrote: > [...] > > There are situations where you create a binding in preference to > > writing something from scratch. cf. gtk,

Re: Mixin can't access library symbols?

2019-05-03 Thread faissaloo via Digitalmars-d-learn
On Friday, 3 May 2019 at 17:51:39 UTC, Adam D. Ruppe wrote: On Friday, 3 May 2019 at 17:48:50 UTC, faissaloo wrote: How can I get a mixin to implicitly include the symbols from its surrounding context? Is this possible? What's your big picture goal? Do you have sample code you have tried so

Re: Mixin can't access library symbols?

2019-05-03 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 3 May 2019 at 17:48:50 UTC, faissaloo wrote: How can I get a mixin to implicitly include the symbols from its surrounding context? Is this possible? What's your big picture goal? Do you have sample code you have tried so far? Also, are you talking mixin("string") or mixin

Mixin can't access library symbols?

2019-05-03 Thread faissaloo via Digitalmars-d-learn
How can I get a mixin to implicitly include the symbols from its surrounding context? Is this possible?

Blog Post #0032 - Menu Accelerator Keys

2019-05-03 Thread Ron Tarrant via Digitalmars-d-learn
An accelerating post for a rainy Friday (well, it's raining here, at least) all about menu accelerator keys. Here's the link: http://gtkdcoding.com/2019/05/03/0032-accelerator_keys.html

Re: OT - Git training Lon/HK and book recommendation on taste in programming

2019-05-03 Thread Russel Winder via Digitalmars-d-learn
On Wed, 2019-05-01 at 09:51 +, Laeeth Isharc via Digitalmars-d- learn wrote: > Hi. > > First question - can anyone recommend git / Gitlab training > providers in HK and London? Two distinct audiences - highly > intelligent people that may or may not really program, and > experienced

Re: Cast ptr/len to D-style array

2019-05-03 Thread Ali Çehreli via Digitalmars-d-learn
On 05/02/2019 08:21 PM, James Blachly wrote: On 5/2/19 4:05 PM, ag0aep6g wrote: Just slice the pointer with the length: int* ptr; size_t len; int[] arr = ptr[0 .. len]; Perfect thanks. I searched but without using the magic word "slice" I couldn't find meaningful results.

Re: dmd + optlink Symbol Undefined _StretchDIBits@52

2019-05-03 Thread Dennis via Digitalmars-d-learn
On Friday, 3 May 2019 at 06:20:37 UTC, Mike Parker wrote: If you compile with -m32mscoff for 32-bit or -m64, DMD will use the Microsoft linker and import libraries if you have Visual Studio or the MS Build tools installed, and the LDC linker with some import libraries from MinGW if you don’t.

Re: CTFE sort of tuples

2019-05-03 Thread Timon Gehr via Digitalmars-d-learn
On 02.05.19 09:28, Stefan Koch wrote: On Thursday, 2 May 2019 at 02:54:03 UTC, Andrey wrote: Hello, I have got this code:     [...] I want to sort array of tuples using "data" element in CTFE. But this code give me errors: [...] As I understand the function "sort" sometimes can't be run

Re: dmd + optlink Symbol Undefined _StretchDIBits@52

2019-05-03 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 2 May 2019 at 22:54:20 UTC, Joshua Hodkinson wrote: Hi everyone, I am getting a linker error when compiling with dmd (v2.085.1) when using StrechDIBits from the win32 api. Error 42: Symbol Undefined _StretchDIBits@52 However with ldc (v1.15.0) the program compiles correctly.