[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having trouble understanding optional and variable amount of argumen
From: |
Stefano Troncaro |
Subject: |
Re: Having trouble understanding optional and variable amount of arguments |
Date: |
Wed, 28 Feb 2018 23:26:31 -0300 |
Thank you! I see that this is not an option then. Also, I now understand why I couldn't make the optional arguments work, since I always left them for last.
Do you know if it is possible to have a flexible amount of optional arguments that appear before the last mandatory one? Say, for example (define-music-function (arg1 args music) (number? ??? ly:music?) where arg1 and music are mandatory, and basically everything between arg1 and the next music _expression_ is compacted into a list and accessed as args in the body of the function. Not with that syntax necessarily, but something that allows for that kind of usage?