Not exactly, but close.  The following line is exactly from the doc.  It works.  It it works, then the offending(next line) line should work as well.

my$bar='Bar';

say$Foo::($bar)::quux; # compound identifiers with interpolations; OUTPUT: «42␤»


sayFoo::($bar)::<$quux>; # won't compile - but the doc says it should - they are supposed to be equivalent

Gives:

===SORRY!=== Error while compiling /home/hogaboom/hogaboom/Perl6/p6ex/./p6ex.p6 Combination of indirect name lookup and call not supported at /home/hogaboom/hogaboom/Perl6/p6ex/./p6ex.p6:345 ------> say Foo::($bar)::⏏<$quux>; expecting any of: argument list

Also, another following line from the doc:

say $Foo::Bar::zape;# compound identifiers separated by ::; OUTPUT: «zipi␤»

outputs (Any), not zipi. The leading $ should be deleted.


say Foo::Bar::zape;# compound identifiers separated by ::; OUTPUT: «zipi␤»

outputs zipi correctly. This is only a doc issue, not a compiler issue.


On 9/30/18 1:47 PM, JJ Merelo wrote:
Is that taken verbatim from the docs? I'll create an issue if that's the case.

JJ

--
Richard A Hogaboom
16 Alprilla Farm Road
Hopkinton, MA 01748-1922
richard.hogab...@gmail.com
www.linkedin.com/in/richardhogaboom/
https://plus.google.com/+RichardHogaboom
https://github.com/rahogaboom
M508-330-3775

Reply via email to