When betterC triggers errors in compilation?

2014-10-14 Thread eles via Digitalmars-d-learn
Hello, According to this: http://forum.dlang.org/post/lddug4$jgv$1...@digitalmars.com -betterC should disable support for exception handling. So I expected dmd to reject the following code: === import std.stdio; int readDieFromFile() { auto

Re: When betterC triggers errors in compilation?

2014-10-14 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 14 October 2014 at 13:20:50 UTC, eles wrote: http://forum.dlang.org/post/lddug4$jgv$1...@digitalmars.com That was just a speculative thread, that stuff isn't implemented. (And I think that went way too far, IMO betterC should just remove the mandatory stuff like ModuleInfo and

Re: When betterC triggers errors in compilation?

2014-10-14 Thread ketmar via Digitalmars-d-learn
On Tue, 14 Oct 2014 13:20:49 + eles via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: What code would fail under -betterC and how? currently betterC disables module info generation and some module helper functions generation. that's all. just grep DMD sources for betterC and

Re: When betterC triggers errors in compilation?

2014-10-14 Thread eles via Digitalmars-d-learn
On Tuesday, 14 October 2014 at 13:31:47 UTC, Adam D. Ruppe wrote: On Tuesday, 14 October 2014 at 13:20:50 UTC, eles wrote: http://forum.dlang.org/post/lddug4$jgv$1...@digitalmars.com -betterC right now is still an undocumented hack that doesn't do much. Thank you.