Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit declarator to class declarations #6

Closed

Conversation

paultcochrane
Copy link

As of Rakudo 2015.05, the unit declarator is required before using
module, class or grammar declarations (unless it uses a block). Code
still using the old blockless semicolon form will throw a warning. This
commit stops the warning from appearing in the new Rakudo.

As of Rakudo 2015.05, the `unit` declarator is required before using
`module`, `class` or `grammar` declarations (unless it uses a block).  Code
still using the old blockless semicolon form will throw a warning. This
commit stops the warning from appearing in the new Rakudo.
@jonathanstowe
Copy link

The use of the semicolon form has now been removed as of 2015.09 so the module will no longer compile:

===SORRY!=== Error while compiling /home/jonathan/devel/perl6/perl6-cache-memcached/.panda-work/1444641276_1/lib/String/CRC32.pm
Semicolon form of 'class' without 'unit' is illegal.  You probably want to use 'unit class'

@cosimo
Copy link
Owner

cosimo commented Oct 21, 2015

Change has been already incorporated through a more recent pull request, so we should be good, even though I'm closing this PR without merging.

@cosimo cosimo closed this Oct 21, 2015
@jonathanstowe
Copy link

Cool! Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants