auto storage class - infer or RAII?

Nils Hensel nils.hensel at web.de
Mon Nov 13 02:57:24 PST 2006


Walter Bright schrieb:
> I think the auto/scope is probably the best idea.

I have to agree, even though I was among the first to shout out against
"auto". I have changed my mind since.

Using a storage class for type inference is an easy and coherent method
and since C++ will use "auto" for type inference it isn't such a bad
choice after all. Perhaps I got used to it after all.

I still think though that it should only mean that. My favourite choice
for stack variables would be "local". It's short and completely obvious
though I could live with "scope" if you want to avoid a new keyword at
all costs.

Cheers,
Nils



More information about the Digitalmars-d mailing list