-
-
Save agentzh/1e272ca1415cefe30c19f4c7d76be9bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===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