Unexpectedly nice case of auto return type

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Dec 4 01:28:00 UTC 2019

On Wed, Dec 04, 2019 at 01:01:04AM +0000, Adam D. Ruppe via Digitalmars-d-learn wrote:
> On Tuesday, 3 December 2019 at 23:44:59 UTC, mipri wrote:
> > Option 4: typeof(return)
> typeof(return) is super cool for like option type things too!

typeof(return) is one of the lesser known cool things about D that make
it so cool.  Somebody should write an article about it to raise
awareness of it. :-D


An imaginary friend squared is a real enemy.

More information about the Digitalmars-d-learn mailing list