No bounds checking for dynamic arrays at compile time?
Paulo Pinto
pjmlp at progtools.org
Sat Dec 15 01:31:29 PST 2012
Am 15.12.2012 03:56, schrieb Walter Bright:
> On 12/14/2012 7:08 AM, Paulo Pinto wrote:
>> So the question is if toy university compilers have flow analysis why
>> not having
>> it in D?
>
> The compiler does do full data flow analysis in the optimizer pass. But,
> by then, it is intermediate code not D code.
>
Ah ok.
I am used to see it being done on the AST level, before doing further
passes.
--
Paulo
More information about the Digitalmars-d
mailing list