Open main menu

CDOT Wiki β

Changes

GPU621/The Chapel Programming Language

2 bytes removed, 13:36, 20 November 2020
Variable:
We use '''const''' and '''param''' to declare runtime constants and compile-time constants. We can set a '''const''' variable's value at runtime. But '''param''' variable requires to set it at beginning.
const myConstmyVar2: real = sqrt(myVar2myVar1); param myParam myVar3 = 3.14;
We can use the '''config''' keyword to override the value on the command line.
config var myVar2myVar4: bool = false; //./variable --myVariable=true
==== Procedures: ====
25
edits