Can we just have struct inheritence already?

Walter Bright newshound2 at digitalmars.com
Fri Jun 14 03:22:48 UTC 2019


On 6/13/2019 6:05 PM, Timon Gehr wrote:
> If the result is mutable, there should be no common subexpression elimination 
> because it affects aliasing, but for immutable results, the compiler should be 
> allowed to pool identical values at its own leisure. (Note that this is not 
> currently done.)

I've suspected for a long time that the value of pure functions is not CSE, but 
the knowledge that there aren't side effects. Side effects are the bane of 
understanding code.



More information about the Digitalmars-d mailing list