On Apr 16, 2012, at 6:32 AM, Steve Schveighoffer wrote:
> 
> Regardless of the solution, I think we need to designate two different 
> situations:
> 
> 1. I want to pass this by reference because it's more efficient
> 2. I want to pass this by reference because I want to change it

Ideally, no one should ever specify "ref" simply for efficiency.  The 
programmer should choose semantics for logical reasons, and leave optimization 
up to the compiler.  That may still not be practical however.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to