[Issue 20086] -betterC and "Unrestricted use of compile-time features"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 27 00:13:05 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20086

--- Comment #2 from mhh <maxhaton at gmail.com> ---
(In reply to Mike Franklin from comment #1)
> > auto bad = demo(); //This should not compile
> 
> I don't see any reason that should not compile.

Shouldn't as in doesn't at the moment.

More philosophically, I was assuming -betterC code can't call non -betterC code
e.g. It uses druntime, although I suppose in the sense that that particular
exception doesn't escape the function I don't know. The spec doesn't say
whether -betterC code can call code using non -betterC features.

--


More information about the Digitalmars-d-bugs mailing list