Bill Baxter <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #5 from Bill Baxter <>  2009-08-06 06:40:55 PDT ---
(In reply to comment #3)
> I'm fairly sure this was by design (bug 2621) in D 2.026, but I don't think it
> was expected to seep through to D1.

I hope you're right.  
In D2 you can have the ref argument be const (which I hope eliminates the
error), but in D1 you have no such option.  So you often have to resort to
making arguments 'ref' for efficiency even when the function doesn't modify the

Also the error message could be a little clearer.  Something like "Can't pass a
temporary to a function taking a ref argument" would be a lot clearer I think. 
Passing something to a function taking a ref does not necessarily imply
assigning to that ref argument in D1, for the reason stated above.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to