On Tuesday, 25 July 2017 at 02:18:41 UTC, Adam D. Ruppe wrote:
On Tuesday, 25 July 2017 at 02:11:20 UTC, NoBigDeal256 wrote:
it passes when it should fail because the unittest block is
never executed. Why is this?
Did you actually instantiate the class somewhere? A template
has no concrete co
On Tuesday, 25 July 2017 at 02:18:41 UTC, Adam D. Ruppe wrote:
On Tuesday, 25 July 2017 at 02:11:20 UTC, NoBigDeal256 wrote:
it passes when it should fail because the unittest block is
never executed. Why is this?
Did you actually instantiate the class somewhere? A template
has no concrete co
For example this code:
class Test {
unittest {
assert(false);
}
}
fails when ran with dmd test.d -unittest like you'd expect. But
if I make it a class template:
class Test(T) {
unittest {
assert(false);
}
}
it passes when it should fail because the unittest bl
On Monday, 10 July 2017 at 20:55:19 UTC, ketmar wrote:
NoBigDeal256 wrote:
Do you happen to have a link to the bug report for this
specific issue that I could look at? I looked at the known
bugs list and couldn't find anything related to this.
nope. it is a kind of "known bug nobody bothered
On Monday, 10 July 2017 at 20:31:12 UTC, ketmar wrote:
NoBigDeal256 wrote:
I'm currently learning D and started working on one of my
first projects which is an API wrapper. I'm currently having
an issue with my program getting a InvalidMemoryOperationError
upon exiting the process on Windows
Still haven't figured out what's wrong. Any help would be
appreciated.
I'm currently learning D and started working on one of my first
projects which is an API wrapper. I'm currently having an issue
with my program getting a InvalidMemoryOperationError upon
exiting the process on Windows 7. On my Debian VM I get a
segmentation fault.
I have tried to minimize the