Skip to content

Commit

Permalink
Un-specify printing pointers (fix ##230)
Browse files Browse the repository at this point in the history
Just add a note to say that implementations can do whatever they want.
  • Loading branch information
sampsyo committed Jul 30, 2022
1 parent 8383f6b commit 2002252
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/lang/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ These are the operations that manipulate memory allocations:
It is an error to access or free a region that has already been freed.
It is also an error to access (`load` or `store`) a pointer that is out of bounds, i.e., outside the range of valid indices for a given allocation.
(Doing a `ptradd` to produce an out-of-bounds pointer is not an error; subsequently accessing that pointer is.)

Printing
--------

It is not an error to use the [core][] `print` operation on pointers, but the output is not specified.
Implementations can choose to print any representation of the pointer that they deem helpful.

[core]: ./core.md

0 comments on commit 2002252

Please sign in to comment.