develooper Front page | perl.perl5.porters | Postings from August 2021

Re: Twigils

Thread Previous | Thread Next
David Nicol
August 12, 2021 18:21
Re: Twigils
Message ID:
sorry, I just became aware of Corrina today.

Could Corinna give instance variables their own syntax, differentiating
them from Perl's lexicals and package variables?

    $::thing; # package var
    $thing;  # lexical, if defined, otherwise package
    i_thing; # Corinna instance variable (or something... placeholder, not

okay read the thing Ovid asked for comments about, I seem to have restated
the question.

On Thu, Aug 12, 2021 at 10:46 AM Dan Book <> wrote:

> On Thu, Aug 12, 2021 at 11:38 AM David Nicol <> wrote:
>> On Thu, Aug 12, 2021 at 6:25 AM Ovid via perl5-porters <
>>> wrote:
>>>  In [Corrina], lexical variables (declared in a method or in a
>>> signature) can hide the instance variables.
>> This doesn't apply to Perl because instance variables already have their
>> own syntax.
>> This is not relevant to Corinna.
"Lay off that whiskey, and let that cocaine be!" -- Johnny Cash

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About