returning constant references from class methods

celavek via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 19 07:36:35 PDT 2016


On Tuesday, 19 July 2016 at 12:33:53 UTC, ag0aep6g wrote:
>
>     final const(ulong[char]) nucleotide_counts () const
>     {
>         return cached_counts;
>     }

OMG! I'm so blind.
Never thought of trying the obvious way.

Thank you


More information about the Digitalmars-d-learn mailing list