On Mon, Feb 02, 2004 at 12:40:45PM -0800, Larry Wall wrote:
> On Fri, Jan 30, 2004 at 06:16:06PM +0000, Tim Bunce wrote:
> : In Java you would write "java.lang.String", naturally, and in Perl
> : you'd write "parrot::java::java.lang.String".
>
> That's okay if it's a string being interpreted by the appropriate
> code, but as a Perl 6 name it won't wash.  That's gonna try to call
> the .lang method on the parrot::java::java class, and the String
> method on the result of that.
> 
> (Unless, of course, you define a parrot::java::java macro to mangle
> subsequent Perl 6 syntax.  But that seems awfully hackish.  And the
> parrot::java namespace might not let you define the macro there in
> the first place...)

Ah, no, it was simply a typo, I meant: parrot::java::java::lang::String

Tim.

Reply via email to