Best practices for logical const

Steven Schveighoffer schveiguy at yahoo.com
Sat Feb 15 18:34:35 PST 2014


On Sat, 15 Feb 2014 15:02:44 -0500, Meta <jared771 at gmail.com> wrote:

> On Saturday, 15 February 2014 at 19:59:07 UTC, Meta wrote:
>> inout is *sort of* logical const, if the underlying type is immutable.
>
> I mean mutable, of course.

No, it's not. It's not allowed to mutate with inout.

-Steve


More information about the Digitalmars-d mailing list