lilypond-devel
[Top][All Lists]
Advanced

[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:16:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Łukasz Czerwiński <address@hidden> writes:

> On 15 April 2012 16:49, David Kastrup <address@hidden> wrote:
>
>     Łukasz Czerwiński <address@hidden> writes:
>     > I'd like to write code, that will make Lilypond better or easier
>     to be
>     > used
>     
>     
>     Not necessarily the same as "the C++ way".
>     
>
> Right :) No iterators needed here :)

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.

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]