lilypond-devel
[Top][All Lists]
Advanced

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

Re: as_ly_scm_list


From: Jean Abou Samra
Subject: Re: as_ly_scm_list
Date: Wed, 27 Jul 2022 08:02:18 +0200


> Le 27 juil. 2022 à 00:46, Dan Eble <dan@lyric.works> a écrit :
> 
> Readers will know that you are just iterating if you use a range-based for 
> loop.


OK, I’ll just stick with that.


> If the variable declaration is a reference, assignment modifies the current 
> list element (and readers will be expecting it).
> 
>    // set! all elements of the_list to #f
>    if (SCM &s : as_ly_scm_list (the_list))
>      s = SCM_BOOL_F;

Did you mean for rather than if, or is this syntax I am not aware of?

Thanks,
Jean





reply via email to

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