From 88283bfc56e222c696a2bc1cc05dc0a0ba8ea38d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 20 Feb 2025 13:56:10 -0500 Subject: [PATCH] Make open question on class variables more explicit (#4988) --- docs/design/classes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/design/classes.md b/docs/design/classes.md index 0a6bc73bfa3a..f3e94b1b5b08 100644 --- a/docs/design/classes.md +++ b/docs/design/classes.md @@ -708,10 +708,11 @@ class TextLabel { Notice that this is subtly different from the meaning of `var` in other contexts: it declares an -[instance variable](https://en.wikipedia.org/wiki/Instance_variable)), not just -a variable in the class's scope. +[instance variable](https://en.wikipedia.org/wiki/Instance_variable), not just a +variable in the class's scope. -> **Open question:** Is there a way to declare a variable in a class's scope? +> **Open question:** Is there a way to declare class variables (scoped to the +> class, not an instance)? In a field declaration, an initializer (such as `= "default"` above) specifies the default value of the field, and will be ignored if another value is supplied