Author: moritz Date: 2009-07-14 23:46:21 +0200 (Tue, 14 Jul 2009) New Revision: 27561
Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] document eval(Buf) Modified: docs/Perl6/Spec/S29-functions.pod =================================================================== --- docs/Perl6/Spec/S29-functions.pod 2009-07-14 21:43:01 UTC (rev 27560) +++ docs/Perl6/Spec/S29-functions.pod 2009-07-14 21:46:21 UTC (rev 27561) @@ -215,11 +215,15 @@ =item eval - multi eval ( Str $code, Grammar :$lang = CALLER::<$?PARSER>) + multi eval ( Str|Buf $code, Grammar :$lang = CALLER::<$?PARSER>) -Execute C<$code> as if it were code written in C<$lang>. The default -is the language in effect at the exact location of the eval call. +Execute C<$code> as if it were code written in C<$lang>. If C<$code> +is of type C<Buf>, the same decoding techniques are applied as a compiler +for C<$lang> would usually do to input files. +The default for C<$lang> is the language in effect at the exact +location of the eval call. + Returns whatever C<$code> returns, or fails. =item evalfile