On Tue Jul 05 16:58:53 2016, s...@linux.com wrote:
> The following error thrown when referencing $?MODULE from module:
> 
> "Variable '$?MODULE' is notVariable '$?MODULE' is not declared"
> 
> Example:
> 
> module Foo { sub f is export { say $?MODULE } }; import Foo; f
> 
> Documented here:
> 
> https://docs.perl6.org/language/variables#Compile-time_variables
> 
> Tested on moar-2016 and HEAD.
> 
We had $?PACKAGE, $?CLASS, and $?ROLE; $?MODULE seems to have simply been 
forgotten. I've implemented it now, and given it test coverage in 
S11-modules/module.t and S11-modules/module-file.t.

Reply via email to