September 20, 2022




The name of the window, which is also the instance name passed in during creation, is a unique identifier under the same window level. Since the child windows under a window cannot use the same name, the name can be used to identify specific objects at the same level.

The name can be used to access a window directly by using the dot operator. The name of the window must follow a specific syntax. The format of the name must be underlined or begin with a letter. The remaining characters can only contain letters, numbers or underscores, and cannot have other special characters. In this way, you can use the dot operator to access the window, which complies with Lua's syntax rules.