BetterC is so much bugs, is Walter really use it in DMD?

test test at gmail.com
Fri Oct 26 01:50:01 UTC 2018


On Thursday, 25 October 2018 at 13:28:22 UTC, rikki cattermole 
wrote:
> After minimizing it myself (at the end), I think that you're 
> running into https://issues.dlang.org/show_bug.cgi?id=18457

Thanks for share this.

On Thursday, 25 October 2018 at 15:48:43 UTC, SrMordred wrote:
> I started to make some BetterC libs and fall on this same bug.
> It make it impossible to properly control resources lifetime if 
> you return it from functions ;/

Yes, is is make the refCount release not working,  already 8 
month passed, I am curious how many time take before it fixed.

And there is more bugs I can not find or minimize in betterC 
since the codebase is huge.

A bugs is still show after I remove all "debug{ ...}" code, I get 
it with "-betterC -debug"(not exists if I only pass -betterC).

bin/../import/std/array.d(2957): Error: TypeInfo cannot be used 
with -betterC



On Thursday, 25 October 2018 at 13:51:16 UTC, Adam D. Ruppe wrote:
>
> No, the compiler is built as ordinary D. betterC is just a toy 
> switch.
>
> But the bug there is that you used TLS without properly 
> initializing it. I am kinda of the opinion that betterC should 
> make this an error, or at least that -betterC should imply 
> -vtls, since it is so frequently a mistake.


As rikki cattermole said, this is not related to tls.   and 
please don't make tls a error in betterC.  since I use it in my 
product with betterC, with a tiny runtime(no typeinfo) it can 
working nice.





More information about the Digitalmars-d mailing list