bug-lilypond
[Top][All Lists]
Advanced

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

Re: comment bug


From: David Kastrup
Subject: Re: comment bug
Date: Sat, 26 May 2018 21:15:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

bb <address@hidden> writes:

> The essential point: The case of nested block comments is not mentioned
> in the manual. (Or I cannot find it?)
>
> #################################
>
> off topic:
>
> Have you heard about Lua? Nice language!
>
> |  print ("This will be printed first")
>   
>   --[===[ Comment out a whole big block!
>   
>   --[[ This is a multiline comment telling you about
>   the work this code is doing ]]
>   
>   print ("This will not be printed in the middle")
>   
>   --[[ This is another multiline comment telling you about
>   the work this code is doing ]]
>   
>   end of big block comment ]===]
>   
>   print ("This will be printed last")|

Not nested comments but rather an unlimited pool of comment delimiters
for unnested delimited comments.

> MATLAB
>
> d = [0 -1 0];
> %{
> %{
> (Example of a nested comment, indentation is for cosmetics (and ignored).)
> %}
>   We form the sequence, following the Taylor formula.
>   Note that we're operating on a vector.
> %}
> seq = d .* (x - c).^n ./(factorial(n))

That seems more like a valid example.  But few languages have something
like that.

-- 
David Kastrup



reply via email to

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