lilypond-user
[Top][All Lists]
Advanced

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

Re: Compile twice with different includes


From: David Kastrup
Subject: Re: Compile twice with different includes
Date: Fri, 15 Feb 2013 17:44:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Urs Liska <address@hidden> writes:

> UsageTest.ly:13:4: In expression ((#<procedure embedded-lilypond #>
> parser " \\writeScoreOddEven #1 \\score { $score } " ...)):
>
> /home/uliska/Github/openLilyLib/OLLincludes/compilationTools/writeScoreOddEven-
> UsageTest.ly:13:4: Wrong type to apply: #<unspecified>
> Exited with return code 1
>
> Is there something wrong with my calling syntax?

Yes.  You really have to break the habit of adding or removing parens
where you feel they make things prettier.

Scheme has no concept of redundant parentheses like C or Pascal.
_Every_ layer of parentheses creates a new list, or a new function call.

So (#{ ... #}) only makes sense when #{ ... #} actually returns a
_function_, and you want to call that function.  But in this case, it
does not return anything.

-- 
David Kastrup




reply via email to

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