function without "this" cannot be const?

Shriramana Sharma via Digitalmars-d-learn digitalmars-d-learn at
Sun Dec 20 21:23:47 PST 2015

Basile B.  wrote:

> without the parens, 'const' means that the function doesn't
> mutate the state of the object or of the struct it's declared in.
> So it's meaningless for a global function.

Thank you people.

Shriramana Sharma, Penguin #395953

More information about the Digitalmars-d-learn mailing list