November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
You're free to have your opinion, but the C++ books I've read disagree... | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
On Mon, 13 Nov 2006 20:40:23 +0200, JC <johnch_atms@hotmail.com> wrote... | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
I realise (and was pointed out already that I misunderstood). Ugliness is definitely in the... | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
According to whom? That's a style thing, not a rule. | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
Ugliness is in the eye of the beholder. And 'var' was never proposed for RAII. | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
Okay seems I misunderstood. Though I dont see why this makes it better. 'auto' as... | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
...point because 'var' isn't used with RAII but with type inference only. ;) 'var' just... | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
But I think 'var' would mean type inference, not RAII. | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
...and doesn't really tell you that RAII is in action. The other storage classes... | |||
November 13, 2006 General » Re: auto storage class - infer or RAII? | |||
|---|---|---|---|
| |||
I think you are right. Hadn't thought of this. | |||
Copyright © 1999-2021 by the D Language Foundation