Skip to content

Instantly share code, notes, and snippets.

@cygx
Last active October 31, 2015 21:50
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 cygx/29dab71ed8f046511750 to your computer and use it in GitHub Desktop.
Save cygx/29dab71ed8f046511750 to your computer and use it in GitHub Desktop.
multi EVAL(Cool $code, Str() :$lang! where 'NQP', *%_) {
use nqp:from<NQP>;
EVAL $code, :lang<nqp>, |%_;
};
EVAL 'my int $i := 42; say($i)', :lang<NQP>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment