Skip to content

Instantly share code, notes, and snippets.

@agentzh
Created January 25, 2017 21:06
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 agentzh/1e272ca1415cefe30c19f4c7d76be9bf to your computer and use it in GitHub Desktop.
Save agentzh/1e272ca1415cefe30c19f4c7d76be9bf to your computer and use it in GitHub Desktop.
method as-lua (Int $level, %ctx, EdgeLang::Want $want --> Str) {
my @params = self.parameters;
my $name = self.name;
my $file = self.file;
my $line = self.min-lineno;
my $lua = "-- at $file line $line\n"
~ "function _M._func_$name(def, _call_depth, ";
my @param-names = ('ctx');
for @params {
push @param-names, .name; # line 94
}
===SORRY!=== Error while compiling /home/agentzh/git/edgelang-p6/lib/EdgeLang/FuncDecl.pm6 (EdgeLang::FuncDecl)
Variable '@param-names' is not declared
at /home/agentzh/git/edgelang-p6/lib/EdgeLang/FuncDecl.pm6 (EdgeLang::FuncDecl):31
------> push ⏏@param-names, .name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment