Affected area by change:
- Language Syntax: yes
- Language Library (Parac Base Library): no
- Compiler: yes
- Pre-Processor: no
- Documentation: yes
Short Introduction and Summary
Implement namespaces for mangling variable names and differentiate variable names in one or more files.
Is your request related to a problem? Please describe.
Currently, with the planned implementation of name mangling, namespaces will have to be implemented in a certain way, to allow for
easier differentiation in files.
Describe the solution you'd like
Implement the keyword namespace, like the following:
namespace section {
int variable = 3;
}
To access the variable variable, the namespace will have to be used as the parent identifier, like in the struct syntax:
section.variable // Accessing the namespace and its child variable
Describe alternatives you've considered
None.
Additional context
None.
Affected area by change:
Short Introduction and Summary
Implement namespaces for mangling variable names and differentiate variable names in one or more files.
Is your request related to a problem? Please describe.
Currently, with the planned implementation of name mangling, namespaces will have to be implemented in a certain way, to allow for
easier differentiation in files.
Describe the solution you'd like
Implement the keyword
namespace, like the following:To access the variable
variable, the namespace will have to be used as the parent identifier, like in the struct syntax:Describe alternatives you've considered
None.
Additional context
None.