Skip to content

Instantly share code, notes, and snippets.

@skids
Created January 19, 2015 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skids/11d8dca21973925c7850 to your computer and use it in GitHub Desktop.
Save skids/11d8dca21973925c7850 to your computer and use it in GitHub Desktop.
rakudo newline dependent behavior
# cat /tmp/A.pm6
role A [ :$bs where { True } = 512] { }
# PERL6LIB=/tmp/ perl6-m -e 'use A; class B does A[ ] { }; B.new;'
===SORRY!===
None of the parametric role variants for 'A' matched the arguments supplied.
Cannot modify an immutable Block
# emacs /tmp/A.pm6
# cat /tmp/A.pm6
role A [ :$bs where { True }
= 512] { }
# PERL6LIB=/tmp/ perl6-m -e 'use A; class B does A[ ] { }; B.new;'
# If the results are not as above, try precompiling at the appropriate times.
# Sometimes the symptom only appears when precompiled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment