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.

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.

Reply via email to