Page:
Identifiers
Pages
Arguments
Body
Control Flow
Data
Enum Definitions
Error Handling
File Structure
Functions and Methods
General Syntax
Guidelines
Home
How to Parse
Identifiers
Interface Definitions
Metadata
Modules
Object Type Definitions
Permissions
Phrases
Return Direction
Style Guide
Tokens
Type Definitions
Type Specifiers
Variable Definition
1
Identifiers
Sasha Koshka edited this page 2022-08-30 05:56:34 +00:00
In ARF, the member selection operator (.) is not an operator. It instead links multiple name tokens together to form what is called an identifier. For example:
io.println
...refers to the println
member of the entity io
.
Only name tokens can be used in identifiers. If a member of an object that results from another operation needs to be accessed, that object must first be assigned to a variable.
ARF does not have separate syntax for accessing a member of a pointer. The dot works either way, like in Go.
- Home Page
- List of Pages
- Guidelines
- Language Reference/Design Spec
- Compiler Design