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

Re: new sigil

From:
Rob Kinyon
Date:
October 25, 2005 10:57
Subject:
Re: new sigil
Message ID:
70384420510251057y737f9bfcgc455d03ae97b4a55@mail.gmail.com
> Basically, ¢T is a close analog of &t, which is the variableish form
> for "sub t".  When used in a declaration, both of them introduce a
> bare name as an alias into whatever scope the declaration is inserting
> symbols, albeit with different syntactic slots.  So just as
>
>     my &t := { ... }
>
> introduces the possibility of
>
>     t 1,2,3
>
> so also a
>
>     my ¢T := sometype();
>
> introduces the possibility of
>
>     my T $x;

I'm assuming that when you allow

    my ¢T := sometype();

you're also allowing

    my class T := sometype();

So, what happens when stupid me names a class "class" through
symbol-table craziness?

Rob



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