Why does this compile (method in class without return type)

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 8 04:33:54 PDT 2017


On 2017-05-03 14:50, Adam D. Ruppe wrote:

> No accident there, the spec says any storage class will do:
> http://dlang.org/spec/function.html#auto-functions
>
> "An auto function is declared without a return type. If it does not
> already have a storage class, use the auto storage class. "

I see.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list