Skip to content
Browse files

smally cleanups for "lazy"

* do not evaluate the thunk when LazyScalar is being assigned to
* update ChangeLog
* run tests
  • Loading branch information...
1 parent 18f9e41 commit e1b8b1292eb5345c053599bd80bac52c8db7a5d4 @moritz moritz committed May 16, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 docs/ChangeLog
  2. +1 −0 src/core/LazyScalar.pm
  3. +1 −0 t/spectest.data
View
1 docs/ChangeLog
@@ -34,6 +34,7 @@ New in 2012.05
+ roundrobin implemented
+ fixed a bug in precompilation of modules that use roles from other modules
+ basic implementation of pack and unpack
++ 'lazy' statement prefix
New in 2012.04.1
+ autvivification for arrays and hashes
View
1 src/core/LazyScalar.pm
@@ -11,6 +11,7 @@ my class LazyScalar is Proxy {
$payload;
},
STORE => sub ($, Mu \$new) {
+ $reified = 1;
$payload := $new;
}
)
View
1 t/spectest.data
@@ -242,6 +242,7 @@ 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

0 comments on commit e1b8b12

Please sign in to comment.
Something went wrong with that request. Please try again.