From 23d8224704b76737e746c5add47aa4cd96a7fd01 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 5 Jan 2021 02:39:50 +0100 Subject: Improves how topics collapse on the menu. --- content/fate_v1/computations/_index.md | 8 ++++---- content/fate_v1/computations/addresses/_index.md | 18 ++++++++++++++++++ content/fate_v1/computations/references/_index.md | 18 ------------------ 3 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 content/fate_v1/computations/addresses/_index.md delete mode 100644 content/fate_v1/computations/references/_index.md (limited to 'content/fate_v1/computations') diff --git a/content/fate_v1/computations/_index.md b/content/fate_v1/computations/_index.md index e8a8816..9b835de 100644 --- a/content/fate_v1/computations/_index.md +++ b/content/fate_v1/computations/_index.md @@ -1,9 +1,8 @@ --- title: Computations -weight: 2 +weight: 3 --- -Computations are values. They may read from the memory, but do not modify it -(with a single exception). +Computations are operations returning values. They do not modify the memory. ### TEXT {{< fatecode >}}(text [C0 = COMPUTATION] ... [CN = COMPUTATION]){{< /fatecode >}} @@ -36,7 +35,8 @@ Returns the value of the `{String}` field of the structure `[STRUCTURE]`. ### TEMPORARY VARIABLES {{< fatecode >}}(let (({V0 = String} [C0 = COMPUTATION]) ... ({VN = String} [CN = COMPUTATION])) [R = COMPUTATION]){{< /fatecode >}} -Defines a hierarchical level and local variables `V0` ... `VN` with values `C0` ... `CN`, and returns the value of `[R]`. +Defines a hierarchical level and local variables `{V0}` ... `{VN}` with values +`[C0]` ... `[CN]`, and returns the value of `[R]`. ### CAST {{< fatecode >}}(cast [TYPE] [COMPUTATION*]){{< /fatecode >}} diff --git a/content/fate_v1/computations/addresses/_index.md b/content/fate_v1/computations/addresses/_index.md new file mode 100644 index 0000000..aafd0f1 --- /dev/null +++ b/content/fate_v1/computations/addresses/_index.md @@ -0,0 +1,18 @@ +--- +title: Addresses +--- +### VALUE ACCESS +{{< fatecode >}}(at [ADDRESS]){{< /fatecode >}} + +Returns the variable at `[ADDRESS]`. + +### ALLOCATION +{{< fatecode >}}(new [TYPE]){{< /fatecode >}} + +Returns the address of a new variable of type `[TYPE]`. Don't forget to call +`free` on it once you're done. + +### ADDRESS +{{< fatecode >}}(ptr [COMPUTATION VARIABLE]){{< /fatecode >}} + +Returns the address of `[COMPUTATION VARIABLE]`. diff --git a/content/fate_v1/computations/references/_index.md b/content/fate_v1/computations/references/_index.md deleted file mode 100644 index ba5716a..0000000 --- a/content/fate_v1/computations/references/_index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: References ---- -### VALUE ACCESS -{{< fatecode >}}(at [ADDRESS]){{< /fatecode >}} - -Returns the variable at `[ADDRESS]`. - -### ALLOCATION -{{< fatecode >}}(new [TYPE]){{< /fatecode >}} - -Returns the address of a new variable of type `[TYPE]`. Don't forget to call -`free` on it once you're done. - -### ADDRESS -{{< fatecode >}}(ptr [COMPUTATION VARIABLE]){{< /fatecode >}} - -Returns the address of `[COMPUTATION VARIABLE]`. -- cgit v1.2.3-70-g09d2