Skip to content

What is different from "field $FOO : common" and "our $FOO". #71

Answered by haarg
yuki-kimoto asked this question in Q&A
Discussion options

You must be logged in to vote

An our variable is publicly visible. our $FOO can be accessed via $MyClass::FOO, but field $FOO : common can't.

In a class context, field $FOO : common; is virtually identical to my $FOO;.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yuki-kimoto
Comment options

Answer selected by Ovid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants