Make version agnostic

This commit is contained in:
Ian Bertolacci 2018-07-23 09:20:21 -07:00
parent 0d211d3419
commit a52115be2f

View File

@ -100,7 +100,7 @@ writeln(varCmdLineArg, ", ", constCmdLineArg, ", ", paramCmdLineArg);
// be made to alias a variable other than the variable it is initialized with. // be made to alias a variable other than the variable it is initialized with.
// Here, refToActual refers to actual. // Here, refToActual refers to actual.
var actual = 10; var actual = 10;
ref refToActual = actual; ref refToActual = actual;
writeln(actual, " == ", refToActual); // prints the same value writeln(actual, " == ", refToActual); // prints the same value
actual = -123; // modify actual (which refToActual refers to) actual = -123; // modify actual (which refToActual refers to)
writeln(actual, " == ", refToActual); // prints the same value writeln(actual, " == ", refToActual); // prints the same value
@ -444,7 +444,7 @@ arrayFromLoop = [value in arrayFromLoop] value + 1;
// Procedures // Procedures
// Chapel procedures have similar syntax functions in other languages. // Chapel procedures have similar syntax functions in other languages.
proc fibonacci(n : int) : int { proc fibonacci(n : int) : int {
if n <= 1 then return n; if n <= 1 then return n;
return fibonacci(n-1) + fibonacci(n-2); return fibonacci(n-1) + fibonacci(n-2);
@ -1141,11 +1141,13 @@ to see if more topics have been added or more tutorials created.
Your input, questions, and discoveries are important to the developers! Your input, questions, and discoveries are important to the developers!
----------------------------------------------------------------------- -----------------------------------------------------------------------
The Chapel language is still in-development (version 1.16.0), so there are The Chapel language is still in active development, so there are
occasional hiccups with performance and language features. The more information occasional hiccups with performance and language features. The more information
you give the Chapel development team about issues you encounter or features you you give the Chapel development team about issues you encounter or features you
would like to see, the better the language becomes. Feel free to email the team would like to see, the better the language becomes.
and other developers through the [sourceforge email lists](https://sourceforge.net/p/chapel/mailman). There are several ways to interact with the developers:
+ [sourceforge email lists](https://sourceforge.net/p/chapel/mailman).
+ [Gitter chat](https://gitter.im/chapel-lang/chapel)
If you're really interested in the development of the compiler or contributing If you're really interested in the development of the compiler or contributing
to the project, [check out the master GitHub repository](https://github.com/chapel-lang/chapel). to the project, [check out the master GitHub repository](https://github.com/chapel-lang/chapel).
@ -1158,8 +1160,8 @@ Chapel can be built and installed on your average 'nix machine (and cygwin).
[Download the latest release version](https://github.com/chapel-lang/chapel/releases/) [Download the latest release version](https://github.com/chapel-lang/chapel/releases/)
and it's as easy as and it's as easy as
1. `tar -xvf chapel-1.16.0.tar.gz` 1. `tar -xvf chapel-<VERSION>.tar.gz`
2. `cd chapel-1.16.0` 2. `cd chapel-<VERSION>`
3. `source util/setchplenv.bash # or .sh or .csh or .fish` 3. `source util/setchplenv.bash # or .sh or .csh or .fish`
4. `make` 4. `make`
5. `make check # optional` 5. `make check # optional`