Comment #75
Module can have class variable
| Status: | Open | Start: | 12/02/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Clause: | 4.3 |
Page and Line: | 18:18 |
|
Description
variable whose value is shared by all the instances of a class
at page 18, line 18.
But a class varaible can be shared by all the instances of a module too.
History
Updated by Shugo Maeda 271 days ago
Yuki Sonoda wrote:
"class variable" is defined as [...] at page 18, line 18.
But a class varaible can be shared by all the instances of a module too.
How about the following definition?
class variable
variable which is defined in a class or a module and is shared by instances of the class or instances of classes which include the module.
Updated by Shugo Maeda 261 days ago
Shugo Maeda wrote:
But a class varaible can be shared by all the instances of a module too.
How about the following definition?
class variable
variable which is defined in a class or a module and is shared by instances of the class or instances of classes which include the module.
Or how about the following definition?
variable whose value is shared by instances of a class when the variable is defined in the class, or whose value is shared by instances of classes which include a module when the variable is defined in the module.