To help LDC/GDC

Jacob Carlborg doob at me.com
Thu Apr 11 11:15:01 PDT 2013


On 2013-04-11 15:53, Iain Buclaw wrote:

> I think that giving the user choice of purity is about as useful as
> given user choice over what functions should be inlined, or what vars
> should go in registers.
>
> Such decisions are best left to the compiler devs judgement on doing the
> right thing for you.  Even if they sometimes get it wrong. :o)

Beside from optimizations, it could good to be able to mark functions as 
pure, form a design point of view. I might be more easy to reason about 
a piece of code.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list