JVM weirdness

Compiling lib/ABC/BrokenRhythm.pm to jar
===SORRY!===
Function 'ABC::Note' needs parens to avoid taking the block
at lib/ABC/BrokenRhythm.pm:36
------>             }⏏<EOL>
Missing block (apparently taken by 'ABC::Note')
at lib/ABC/BrokenRhythm.pm:37
------>             ⏏when ABC::Stem { ABC::Stem.new($note.not

The code in question (from BrokenRhythm.pm) is

when ABC::Note { 
    ABC::Note.new($note.accidental,
                  $note.basenote,
                  $note.octave,
                  ABC::Duration.new(:$ticks), 
                  $note.is-tie); 
}

I believe it’s the first ABC::Note there that is causing the problem.

This appears to be legal to me, and works fine under Parrot and Moar.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: