Parameterized delegate attributes

pineapple via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 28 13:23:10 PDT 2016


On Wednesday, 28 September 2016 at 17:00:49 UTC, Lodovico 
Giaretta wrote:
> but a good compiler should be able to recognize functions with 
> the same code and fold them; for example, if a function takes a 
> generic pointer, chances are it doesn't need to be duplicated 
> for every pointer type.

But using a templated opApply currently breaks type inference in 
`foreach`, right?

It'd be really nice if that were fixed.


More information about the Digitalmars-d mailing list