Browse Source

BLOCKS: Added documentation for Littlefoot Arrays

tags/2021-05-28
dimitri Tom Poole 6 years ago
parent
commit
88e26d7a1e
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      modules/juce_blocks_basics/littlefoot/LittleFoot Language README.txt

+ 15
- 1
modules/juce_blocks_basics/littlefoot/LittleFoot Language README.txt View File

@@ -64,7 +64,21 @@ Local variables are declared in C++-style syntax:
Casts of primitive types are done with function-style syntax, e.g.
int x = int (123.0);
float f = float (getIntegerValue());
float f = float (getIntegerValue());

Arrays of any type can be created in the global scope using C-style syntax.
Elements of arrays can be set and read from functions.
Arrays cannot be created within functions or returned from functions.

For example:

int foo[12];

void initialise()
{
for (int i = 0; i < 12; ++i)
foo[i] = i;
}
The program communicates with the host computer by using a shared area of memory
called the heap which the host can change. There are some built-in functions


Loading…
Cancel
Save