develooper Front page | perl.perl6.users | Postings from June 2020

Re: Playing with protos and phasers

Thread Previous
From:
Brad Gilbert
Date:
June 25, 2020 23:40
Subject:
Re: Playing with protos and phasers
Message ID:
CAD2L-T1G1VRBLHux3Zm+zWEkxHb-rWfzUatzctAdyXho_w-wSg@mail.gmail.com
While {*} is only useful in a proto, the compiler detects it no matter
where you write it.

    > my $block = {*};
    ===SORRY!=== Error while compiling:
    {*} may only appear in proto
    at line 2
    ------> <BOL>⏏<EOL>

On Thu, Jun 25, 2020 at 3:48 PM Fernando Santagata <
nando.santagata@gmail.com> wrote:

> On Thu, Jun 25, 2020 at 8:10 PM Brad Gilbert <b2gills@gmail.com> wrote:
>
>> {*} is specially handled by the compiler as a term.
>>
>
> Thank you!
>
> I guess that handling is peculiar to proto, and maybe it's worth
> documenting it.
>
> --
> Fernando Santagata
>

Thread Previous


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