Typical security issues in C++: why the GC isn't your enemy

deadalnix deadalnix at gmail.com
Fri Dec 9 00:24:10 UTC 2022


On Thursday, 8 December 2022 at 20:52:26 UTC, Walter Bright wrote:
> On 12/6/2022 5:33 AM, deadalnix wrote:
>> Compiler can do control flow analysis, so they can force you 
>> to initialize things before you use them. This is the right 
>> solution to that problem.
>
> Your are correct, but this isn't done because it makes compiles 
> 10x or more slower.

I do not expect this to be that expensive. It is simpler than the 
escape analysis that is being baked in the language right now, 
and roughly on par with keeping track of constructors/destructors.


More information about the Digitalmars-d mailing list