October 27, 2021 General » Re: Thoughts on versioning | |||
|---|---|---|---|
| |||
...multiple versions is difficult? There is no ifdef hell. The new version of a library... | |||
October 27, 2021 General » Re: Thoughts on versioning | |||
|---|---|---|---|
| |||
...versioning hell, but you end up in #ifdef hell instead. So, what if we didn... | |||
May 23, 2021 Learn » Re: How does inheritance and vtables work wrt. C++ and interop with D? Fns w/ Multiple-inheritance args impossible to bind to? | |||
|---|---|---|---|
| |||
...endEdit(void *, ParamID);
tresult restartComponent(void *, int32);
};
#ifdef __cplusplus
extern "C" {
#endif
typedef struct FUnknownVTable... | |||
May 11, 2021 General » Re: Add ImportC compiler to dmd | |||
|---|---|---|---|
| |||
...C is general littered with #ifdef. Commonplace is the #ifdef __cplusplus and without the preprocessor... | |||
May 10, 2021 General » Re: Add ImportC compiler to dmd | |||
|---|---|---|---|
| |||
...I have lifted from the Linux kernel
```
#ifdef __GNUC__
/** Array size macro. Copied the Linux... | |||
May 05, 2021 Learn » Re: How to check for combinations of versions | |||
|---|---|---|---|
| |||
...deliberately restricted, in order to avoid the "`#ifdef` hell" that often plagues C and C... | |||
April 21, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
Between them, Simen and Ali have cracked the case. Ali's demonstration that "true" was... | |||
April 21, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
...you're right. It's different than ifdef. I think version is the closest thing... | |||
April 21, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
This would be correct if `i_am_a_feature` would be always defined, just set... | |||
April 20, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
enum i_am_a_feature = true;
static if(i_am_a_feature) {
...
}
enum isn't... | |||
Copyright © 1999-2021 by the D Language Foundation