Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 31, 2018 19:54
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 Whateverable/bd39208fb15106ccbcce279fb9e338b5 to your computer and use it in GitHub Desktop.
Save Whateverable/bd39208fb15106ccbcce279fb9e338b5 to your computer and use it in GitHub Desktop.
evalable6
class NuclearPowerPlant { has $!uranium; method new ($q) { self.bless: uranium => ($q > 1000 ?? 1000 !! $q) }; method power { say 42/$!uranium } }; NuclearPowerPlant.new(10000000000).perl.EVAL.power
(exit code 1)
Use of uninitialized value of type Any in numeric context
in method power at /tmp/5Pe5414Set line 1
Attempt to divide by zero when coercing Rational to Str
in method power at /tmp/5Pe5414Set line 1
in block <unit> at /tmp/5Pe5414Set line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment