From 79ccb3f6768cfc6af539dfbe2ad746a295cb3a85 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Mon, 22 Dec 2014 08:30:10 -0800 Subject: [PATCH] Update User Manual.md --- doc/User Manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/User Manual.md b/doc/User Manual.md index 372fba8..4ef291d 100644 --- a/doc/User Manual.md +++ b/doc/User Manual.md @@ -311,12 +311,12 @@ Pointers are values that represent addresses. In order to get the value pointed Just as there are type override for arrays and offsets, there is a `byte` and `word` type override for pointers. Prepending a value with `^` dereferences a `byte`. Prepending a value with `*` dereferences a `word`. These are unary operators, so they won't be confused with the binary operators using the same symbol. An example getting the length of a Pascal string (length byte at the beginning of character array): ``` byte mystring = "This is my string" -byte len -word strptr def strlen(strptr) return ^strptr end + +puti(strlen(@mystring)) // print 17 in this case ``` Pointers to structures or arrays can be referenced with the `->` and `=>` operators, pointing to `byte` or `word` sized elements. ```