On Wednesday, 27 December 2017 at 10:08:37 UTC, Walter Bright
wrote:
On 12/27/2017 12:59 AM, Dan Partelly wrote:
All could have been prevented by going the C++ route of 0 cost
abstraction,
C++ is not 0 cost abstraction, despite the marketing. It's why
C++ compilers have switches to disable things like EH and RTTI.
Hi Walter, Can you take a look at this betterC bug:
https://issues.dlang.org/show_bug.cgi?id=18099
==========
struct D()
{
struct V {
~this() {
}
}
auto get() {
V v ;
return v ;
}
}
alias T = D!();
============
Error: Cannot use throw statements with -betterC
a.d(12): Error: template instance a.D!() error instantiating
It is a block for implement auto RefCount in betterC. Since
there is no GC, auto RefCount is the way to make D work far more
useable then pure C, and it relay on this bug to be fixed.