What is different from "field $FOO : common" and "our $FOO". #71
Answered
by
haarg
yuki-kimoto
asked this question in
Q&A
-
What is different from "field $FOO : common" and "our $FOO". https://github.com/Ovid/Cor/blob/master/rfc/attributes.md#6311-common
And Is "our $FOO" allowed in the class syntax? |
Beta Was this translation helpful? Give feedback.
Answered by
haarg
Aug 19, 2022
Replies: 1 comment 1 reply
-
An In a class context, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Ovid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An
our
variable is publicly visible.our $FOO
can be accessed via$MyClass::FOO
, butfield $FOO : common
can't.In a class context,
field $FOO : common;
is virtually identical tomy $FOO;
.