Re: noobie question, dub or meson?

2021-03-20 Thread James Blachly via Digitalmars-d-learn
On 3/19/21 4:04 AM, Chris Piker wrote: Has there ever been talk of adding C source code support to dub, or is that a forbidden topic?  I know if dub supported C, all my C libs and all my necessary dependencies (openssl, expat, etc.) would have dub.json files before the weekend was over.

Re: Can I make this work?

2021-03-20 Thread Kagamin via Digitalmars-d-learn
struct S { this(string s) { type = Type.type1; } this(int n) { type = Type.type2; } Type type; int n; } int value(S s)() { static if(s.type == Type.type2) { // do something

Re: How do I check if this field is of this template struct?

2021-03-20 Thread Jack via Digitalmars-d-learn
On Saturday, 20 March 2021 at 00:16:06 UTC, Steven Schveighoffer wrote: On 3/19/21 12:41 PM, Jack wrote: On Friday, 19 March 2021 at 08:54:50 UTC, Paul Backus wrote: On Friday, 19 March 2021 at 07:14:46 UTC, Jack wrote: give below template struct, how can I list the members x, y and z? I've