On Sunday, 3 December 2017 at 15:24:27 UTC, Manuel Maier wrote:
I've been experimenting with the -betterC switch and stumbled upon something that didn't quite make sense to me.

betterC doesn't change the language, it just doesn't compile in all the features automatically. So rules about nothrow etc. decorations are still in place, even if the feature isn't actually available at this time. The same code you build with -betterC can almost always be built without the switch too, and continue to work the same way.

According to the docs, exceptions "won't work":

That may be a temporary restriction. It is already possible to do exceptions with -betterC code if you link in the functions yourself (notably, betterC modules are permitted to be used in a regular druntime based application), and in the future, such may be done automatically on demand too.

Reply via email to