Author: jonathan
Date: Sat Jul 26 04:37:09 2008
New Revision: 29751
Modified:
trunk/languages/perl6/src/builtins/control.pir
Log:
[rakudo] Make sleep return the value it was given, which for now fakes the
number of seconds slept. More importantly, it avoids a Null PMC Access
exception. We can improve this once sub-second time support is in place through
the time() call. Patch from Carl Mäsak <cmasak at gmail.com> (masak++).
Modified: trunk/languages/perl6/src/builtins/control.pir
==============================================================================
--- trunk/languages/perl6/src/builtins/control.pir (original)
+++ trunk/languages/perl6/src/builtins/control.pir Sat Jul 26 04:37:09 2008
@@ -115,6 +115,7 @@
.sub 'sleep'
.param num a
sleep a
+ .return (a)
.end
=item eval