Eigenpoll : D wish list : Pass value params byref 

Implicitly pass value type function parameters by reference if:

- they (or members of) are not assigned to inside a function.
- they (or members of) are not passed out or inout to another function.
- the address of the type (or members of) is not taken from inside of the function.
- methods of a value UDT parameter are not invoked.

This would be an optimization that would allow passing 'read-only' UDT's like structs around a lot more efficiently.

Report this item for cleanup