December 14, 2013 Re: const method and return type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On 12/13/2013 04:30 PM, Adam D. Ruppe wrote: > There's some discussion that auto might strip off the top level > const where it is otherwise allowed, but I'm not sure if that's > actually going to happen or not. Ah. I was about to respond by "that top level const is silly" but I now see that it is true only when no mutable reference is involved. So, in order to keep things simple, now I think that the current behavior is better. Ali |
Copyright © 1999-2021 by the D Language Foundation