New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lexical subs can't be found in the setting #1168
Comments
From @moritzIf I add a lexical sub in the setting and then call it from within the The attached patch demonstrates this. Apply it, reconfigure, recompile Cheers, |
From @moritz0001-initial-NYI.pm-implementation.patchFrom 9326bf8285aafaa09100d3e5db54f8efa619a324 Mon Sep 17 00:00:00 2001
From: Moritz Lenz <moritz@faui2k3.org>
Date: Fri, 24 Jul 2009 22:32:40 +0200
Subject: [PATCH] initial NYI.pm implementation
---
build/Makefile.in | 1 +
src/setting/NYI.pm | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
create mode 100644 src/setting/NYI.pm
diff --git a/build/Makefile.in b/build/Makefile.in
index 5527a03..37f317f 100644
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -126,6 +126,7 @@ SETTING = \
src/setting/List.pm \
src/setting/Match.pm \
src/setting/Num.pm \
+ src/setting/NYI.pm \
src/setting/Object.pm \
src/setting/Operators.pm \
src/setting/Pair.pm \
diff --git a/src/setting/NYI.pm b/src/setting/NYI.pm
new file mode 100644
index 0000000..507ec49
--- /dev/null
+++ b/src/setting/NYI.pm
@@ -0,0 +1,10 @@
+my sub nyi($what) {
+ die "$what is not yet implemented in Rakudo, sorry"
+};
+
+multi caller() { nyi('caller()') }
+multi want() { nyi('want()') }
+
+caller();
+
+# vim: ft=perl6
--
1.5.6.5
|
From @jnthnOn Fri Jul 24 13:35:41 2009, moritz wrote:
Well, every sub in the setting is lexical now, so I guess this works /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#67868 (status was 'resolved')
Searchable as RT67868$
The text was updated successfully, but these errors were encountered: