On Thu Jun 06 09:00:54 2013, elizabeth wrote:
> [10:41:11] <lizmat> r: module Foo { module Bar { say $?PACKAGE }
> } # shouldn't this need to say (Foo::Bar) ???
> [10:41:12] <+camelia> rakudo b2072f: OUTPUT«(Bar)»
> [10:53:53] <lizmat> TimToady: do you have an opinion on "module
> Foo { module Bar { say $?PACKAGE } } # shouldn't this need to say
> (Foo::Bar) ???"
> [10:54:17] <TimToady> lizmat: I'd think so
> [10:54:50] <jnthn> Wait, stringifying a type object gives the
> short nam,e no?
> [10:55:20] <lizmat> ah, how to get the long name then?
> [10:55:32] <jnthn> .WHO iirc, though not sure that does the
> Right thing yet.
> [10:55:54] <pmichaud> $?PACKAGE.WHO stringifies to long name
> [10:56:13] <jnthn> Right
> [10:56:17] <jnthn> well, *should* :)
> [10:56:34] <lizmat> rn: module Foo { module Bar { say
> $?PACKAGE.WHO } }
> [10:56:37] <+camelia> ..rakudo b2072f: OUTPUT«().hash»
> [10:56:59] lizmat adapts rakudobug before sending off
Now .WHAT reliably gists to the shortname in parens, and .WHO reliably gists to
the fully qualified name. A bunch of tests were added to S10-packages/basic.t
to cover this.
/jnthn