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
Implement Blob.EVAL method #3432
Comments
From @cokeS29 says that EVAL should work on Buf in addition to Str; There is one Could probably use more tests. -- |
@coke - Status changed from 'new' to 'open' |
From @zoffixznetQuoting the relevant portion of S29 that describes how the buf needs to be processed: Execute C<$code> as if it were code written in C<$lang>. If C<$code> |
From @zoffixznetOn Wed, 09 Jul 2014 07:10:31 -0700, coke wrote:
Everything is now implemented[^1] with more tests added[^2], and I unfudged[^3] one Feels like it shouldn't be added at all. I heard people in the past express Personally, I'd toss that fudge and not implement the method, but leaving [1] rakudo/rakudo@6c928d61d9 Inline Patchdiff --git a/src/core/Buf.pm b/src/core/Buf.pm
index eca050e..faf7ead 100644
--- a/src/core/Buf.pm
+++ b/src/core/Buf.pm
@@ -101,6 +101,10 @@ my role Blob[::T = uint8] does Positional[T] does Stringy is repr('VMArray') is
)
}
+ method EVAL(*%opts) {
+ EVAL(self, context => CALLER::, |%opts);
+ }
+
multi method Bool(Blob:D:) { nqp::p6bool(nqp::elems(self)) }
multi method elems(Blob:D:) { nqp::p6box_i(nqp::elems(self)) } |
Feels to me this should just be implemented, or |
Migrated from rt.perl.org#122256 (status was 'open')
Searchable as RT122256$
The text was updated successfully, but these errors were encountered: