develooper Front page | perl.perl6.language | Postings from April 2005

Quick question: parens vs subroutine parameter

Thread Next
From:
Autrijus Tang
Date:
April 20, 2005 13:20
Subject:
Quick question: parens vs subroutine parameter
Message ID:
20050420201951.GA22262@aut.dyndns.org
So, following up on the Parens handling, are these two equivalent?

    # Assuming &is has the parameter signature (Str, Str, Str)
    is((1,2), (3,4), "hey");
    is([1,2], [3,4], "hey");

What happens if &is is of type (Any, Any, Str)?

Thanks,
/Autrijus/

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