Changes

Jump to: navigation, search

GPU621/The Chapel Programming Language

1 byte added, 17:58, 2 December 2020
Language Basics
=== Language Basics ===
==== Keywords Variables ====
The variable declaration requires a type or initializer.
==== Classes: ====
A class is a type of collection that collects ''variables'', ''procedures'' and ''iterators''. We use '''class''' keyword to declare a new class type and use '''new''' keyword to create its instaceinstance.
class myClass {
Records are similar to classes. '''Records''' doesn't support inheritance and virtual dispatch but it supports copy constructor and copy assignment. And record variables refer to a distinct memory.
 
=== Iterators ===
25
edits

Navigation menu