Open main menu

CDOT Wiki β

Changes

GPU621/Chapel

488 bytes added, 22:26, 29 November 2022
Procedure
*An iterator named these that can accept zero arguments is automatically called when a record or class instance is used in the iterator position of a for loop.
*The writeThis and readThis methods allows user to read or write the instance.
 
=== Nothing Variable ===
The primer demonstrates the use of the nothing type. A nothing is removed by the compiler and doesn’t exist during program execution. The value none has type nothing and can be assigned to a nothing variable, or returned from a function with nothing return type.
var nothingVar: nothing;
The value none is the only value of the nothing type.
var nothingVar2 = none;
The following (commented out) statements are compile time errors:
nothingVar = 1;
= Reference =
73
edits