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