On Tuesday, 25 October 2022 at 08:14:26 UTC, Per Nordlöw wrote:
On Monday, 24 October 2022 at 20:43:45 UTC, ryuukk_ wrote:
I wish we could do ``version(DebugFast | Release)``
Moreover, I've been using, for instance,
```d
version(D_Coverage) {} else pragma(inline, true);
void foo() {}
```
to
On Tuesday, 25 October 2022 at 08:14:26 UTC, Per Nordlöw wrote:
On Monday, 24 October 2022 at 20:43:45 UTC, ryuukk_ wrote:
I wish we could do ``version(DebugFast | Release)``
Moreover, I've been using, for instance,
```d
version(D_Coverage) {} else pragma(inline, true);
void foo() {}
```
to
On Monday, 24 October 2022 at 20:43:45 UTC, ryuukk_ wrote:
I wish we could do ``version(DebugFast | Release)``
Moreover, I've been using, for instance,
```d
version(D_Coverage) {} else pragma(inline, true);
void foo() {}
```
to get correct coverage inclusion of `foo()`. Is this still neeed?
On Monday, 24 October 2022 at 19:28:34 UTC, Jack Stouffer wrote:
I use
```
pragma(inline, true)
function definition
```
all over my code. And by default, DMD inlines these functions
even in debug builds, which normally is great. I have a custom
dynamic array container and if the indexing oper
On Monday, 24 October 2022 at 19:28:34 UTC, Jack Stouffer wrote:
I use
```
pragma(inline, true)
function definition
```
all over my code. And by default, DMD inlines these functions
even in debug builds, which normally is great. I have a custom
dynamic array container and if the indexing oper
I use
```
pragma(inline, true)
function definition
```
all over my code. And by default, DMD inlines these functions
even in debug builds, which normally is great. I have a custom
dynamic array container and if the indexing operator overload
function wasn't inlined the debug build would have