As a result, when writing APIs, don't enforce constness of your parameters if you require logical const. e.g. a range will not necessarily have const front and empty. Trying to enforce that will lead to trouble.
If you want logical const in D, you just don't use const. If you
try to hack around it, it will just come back and bite you.
- Best practices for logical const Adam D. Ruppe
- Re: Best practices for logical const Jonathan M Davis
- Re: Best practices for logical const Jakob Ovrum
- Re: Best practices for logical const Peter Alexander
- Re: Best practices for logical const Jesse Phillips
- Re: Best practices for logical const Timon Gehr
- Re: Best practices for logical const Meta
- Re: Best practices for logical const Meta
- Re: Best practices for logical const Steven Schveighoffer
- Re: Best practices for logical ... Meta
- Re: Best practices for logi... Steven Schveighoffer
- Re: Best practices for ... Meta
- Re: Best practices for ... Steven Schveighoffer
- Re: Best practices for ... Meta