[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: for_UP_and_DOWN
From: |
David Kastrup |
Subject: |
Re: for_UP_and_DOWN |
Date: |
Sun, 15 Apr 2012 17:37:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Graham Percival <address@hidden> writes:
> On Sun, Apr 15, 2012 at 05:16:07PM +0200, David Kastrup wrote:
>> Actually, with option -std=c++0x GCC would accept
>>
>> for (Direction d : { UP, DOWN })
>> {
>> ...
>> }
>>
>> and that would be readable enough without having to revert to macros.
>
> I like that solution, but I'm iffy about relying on compiler
> support for elements of languages that are less than 10 years old.
I was not suggesting we use it. I just pointed out that in future for
_some_ things "the C++ way" could become less incompatible with
"readable".
--
David Kastrup
- Re: for_UP_and_DOWN, (continued)
- Re: for_UP_and_DOWN, Graham Percival, 2012/04/14
- Re: for_UP_and_DOWN, Łukasz Czerwiński, 2012/04/14
- Re: for_UP_and_DOWN, Graham Percival, 2012/04/14
- Re: for_UP_and_DOWN, David Kastrup, 2012/04/14
- Re: for_UP_and_DOWN, Graham Percival, 2012/04/14
- Re: for_UP_and_DOWN, Łukasz Czerwiński, 2012/04/15
- Re: for_UP_and_DOWN, David Kastrup, 2012/04/15
- Re: for_UP_and_DOWN, Łukasz Czerwiński, 2012/04/15
- Re: for_UP_and_DOWN, David Kastrup, 2012/04/15
- Re: for_UP_and_DOWN, Graham Percival, 2012/04/15
- Re: for_UP_and_DOWN,
David Kastrup <=
- Re: for_UP_and_DOWN, Graham Percival, 2012/04/15
- Re: for_UP_and_DOWN, Łukasz Czerwiński, 2012/04/17
- Re: for_UP_and_DOWN, address@hidden, 2012/04/20
- Message not available
- Re: for_UP_and_DOWN, Han-Wen Nienhuys, 2012/04/22
- Re: for_UP_and_DOWN, Łukasz Czerwiński, 2012/04/23
- Re: for_UP_and_DOWN, Graham Percival, 2012/04/15