Skip to content

Commit 2002252

Browse files
committed
Un-specify printing pointers (fix ##230)
Just add a note to say that implementations can do whatever they want.
1 parent 8383f6b commit 2002252

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/lang/memory.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ These are the operations that manipulate memory allocations:
4040
It is an error to access or free a region that has already been freed.
4141
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.
4242
(Doing a `ptradd` to produce an out-of-bounds pointer is not an error; subsequently accessing that pointer is.)
43+
44+
Printing
45+
--------
46+
47+
It is not an error to use the [core][] `print` operation on pointers, but the output is not specified.
48+
Implementations can choose to print any representation of the pointer that they deem helpful.
49+
50+
[core]: ./core.md

0 commit comments

Comments
 (0)