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. C

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