Joseph Rushton Wakeling:
struct Foo
{
const(auto) bar()
{
// modifies internal data of Foo
// but returns a const type
}
}
Is this acceptable?
struct Foo {
auto bar() {
const result = ...;
return result;
}
}
Bye,
bearophile
