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
<masak> from S12: "The first form [the 'role A;' one] is allowed only
as the first declaration in a compilation unit (that is, file or eval
string)." does that mean I can have use statements before the
declaration?
<masak> ISTR there was a spec change to allow exactly that.
<pmichaud> I know it came up for discussion; I didn't see the spec change.
<pmichaud> let me see if STD.pm changed, though
<pmichaud> (Rakudo followed STD.pm more than the spec, there.)
<pmichaud> std: say 'ok'; module Bar; say 'ok!';
<p6eval> std 27032: OUTPUT«ok 00:02 35m»
<masak> oh, STD.pm is very permissive.
<pmichaud> std: say 'ok'; module Bar; say 'ok!'; module Foo; say 'no!';
<p6eval> std 27032: OUTPUT«##### PARSE FAILED ##### [...]
<pmichaud> it looks like STD.pm is allowing only one "module Foo;"
per compilation unit, but anything can come before it.
<masak> ok.
<masak> maybe that's sane.
<masak> better than to whitelist things, to be sure.
<masak> in that case, all that remains is a Rakudobug.
Migrated from rt.perl.org#66394 (status was 'resolved')
Searchable as RT66394$
The text was updated successfully, but these errors were encountered: