---
class S
{
    private SomeType cache;

    public const(SomeType) SomeProp() @property
    {
       if (cache is null)
         cache = SomeExpensiveOperation();
       return cache;
    }
}
---

the result of the getter will be read-only

Reply via email to