develooper Front page | perl.perl6.language | Postings from November 2008

.perl and other methods on Junctions?

Thread Next
From:
Patrick R. Michaud
Date:
November 4, 2008 11:33
Subject:
.perl and other methods on Junctions?
Message ID:
20081104193309.GA19061@pmichaud.com
Consider the code:

    my $x = 3 | 'foo';
    my $y = $x.perl;


Does $y end up as a junction of strings or as a single string?

Asking more directly, does .perl autothread over a Junction?
If .perl does not autothread, then is there some way of knowing
which methods autothread and which do not?

(The question of method autothreading over junctions came up at
the OSCON 2008 hackathon, but I don't know that it was ever
resolved.  If it was and I've just forgotten or overlooked the
resolution,  I'll be happy to have it pointed out to me.)

Thanks!

Pm

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About