Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove LAZY, which has long been deprecated

  • Loading branch information...
commit e015e40f735e404075057c7f22456e9d8aaba5e4 1 parent f39ec7c
@moritz moritz authored
View
4 src/Perl6/Actions.pm
@@ -957,10 +957,6 @@ class Perl6::Actions is HLL::Actions {
method statement_prefix:sym<PRE>($/) { make $*W.add_phaser($/, 'PRE', ($<blorst>.ast)<code_object>, ($<blorst>.ast)<past_block>); }
method statement_prefix:sym<POST>($/) { make $*W.add_phaser($/, 'POST', ($<blorst>.ast)<code_object>, ($<blorst>.ast)<past_block>); }
- method statement_prefix:sym<LAZY>($/) {
- make $*W.create_lazy($/, $<blorst>.ast()<code_object>);
- }
-
method statement_prefix:sym<DOC>($/) {
$*W.add_phaser($/, ~$<phase>, ($<blorst>.ast)<code_object>)
if %*COMPILING<%?OPTIONS><doc>;
View
1  src/Perl6/Grammar.pm
@@ -905,7 +905,6 @@ grammar Perl6::Grammar is HLL::Grammar {
token statement_prefix:sym<try> { <sym> <blorst> }
token statement_prefix:sym<gather>{ <sym> <blorst> }
token statement_prefix:sym<do> { <sym> <blorst> }
- token statement_prefix:sym<LAZY> { <sym> <blorst> }
token statement_prefix:sym<DOC> {
<sym> \s <.ws> $<phase>=['BEGIN' || 'CHECK' || 'INIT']
<blorst>
View
19 src/core/LazyScalar.pm
@@ -1,19 +0,0 @@
-my class LazyScalar is Proxy {
- method new($code) {
- my int $reified = 0;
- my Mu $payload;
- self.Proxy::new(
- FETCH => sub ($) {
- unless $reified {
- $payload := $code();
- $reified = 1;
- }
- $payload;
- },
- STORE => sub ($, Mu \new) {
- $reified = 1;
- $payload := new;
- }
- )
- }
-}
View
1  t/spectest.data
@@ -244,7 +244,6 @@ S04-statements/gather.t
S04-statements/given.t
S04-statements/if.t
S04-statements/last.t
-S04-statements/lazy.t
S04-statements/loop.t
S04-statements/map-and-sort-in-for.t
S04-statements/next.t
View
1  tools/build/Makefile.in
@@ -240,7 +240,6 @@ CORE_SOURCES = \
src/core/operators.pm \
src/core/metaops.pm \
src/core/terms.pm \
- src/core/LazyScalar.pm \
src/core/you_are_here.pm \
DOCS = README CREDITS LICENSE docs/*
Please sign in to comment.
Something went wrong with that request. Please try again.