You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you `use` a v6.d, it causes language switch and will also complain if the version is too high.
The same doesn't happen with `need`. It should probably fail in these cases, and `<version>` should
be just removed from the grammar[^1].
15:26 m: need v6.c
15:26 camelia rakudo-moar f946bd: ( no output )
15:27 Zoffix m: need v6.e
15:27 camelia rakudo-moar f946bd: ( no output )
15:32 Zoffix m: need v6.d; say $*PERL.version
15:32 camelia rakudo-moar f946bd: OUTPUT: «v6.c»
On Tue, 03 Oct 2017 08:34:39 -0700, cpan@zoffix.com wrote:
If you `use` a v6.d, it causes language switch and will also complain
if the version is too high.
The same doesn't happen with `need`. It should probably fail in these
cases, and `<version>` should
be just removed from the grammar[^1].
15:26 m: need v6.c
15:26 camelia rakudo-moar f946bd: ( no output )
15:27 Zoffix m: need v6.e
15:27 camelia rakudo-moar f946bd: ( no output )
15:32 Zoffix m: need v6.d; say $*PERL.version
15:32 camelia rakudo-moar f946bd: OUTPUT: «v6.c»
<Zoffix__> m: need v6.d
<camelia> rakudo-moar e7e91ecfb: OUTPUT: «===SORRY!=== Error while compiling <tmp>In case of using pragma, use "use" instead (e.g., "use v6;", "use v6.c;").at <tmp>:1------> need v6.d⏏<EOL>»
Migrated from rt.perl.org#132214 (status was 'new')
Searchable as RT132214$
The text was updated successfully, but these errors were encountered: