lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: * Allow for nested contexts of any depth.


From: Han-Wen Nienhuys
Subject: Re: * Allow for nested contexts of any depth.
Date: Sat, 8 Nov 2008 16:54:55 -0200

On Fri, Nov 7, 2008 at 9:10 PM,  <address@hidden> wrote:
>> http://codereview.appspot.com/7261/diff/1/2
>> File lily/context-def.cc (right):
>>
>> http://codereview.appspot.com/7261/diff/1/2#newcode215
>> Line 215: seen = new set<const Context_def *> ();
>> Can you make a wrapper function that does
>>
>>  set<..> seen;
>>  path_to (.. , &seen)
>>
>> instead?
>
> I've tried, but I'm completely stumped. :)
>
> I barely understand how this works, so I'm a bit out of my depth
> unfortunately.
>
> Are you suggesting a recursive call?

No, this call is already recursive; I suggest creating another
function which allocates the set<> and does the outer call of the
recursive function.

-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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