Closed marekjm closed 8 years ago
Pointers are implemented. One caveat to using them (ah, caveats of using pointers...) is that depointerised objects MUST NOT be turned into references. This is because the ref
instruction will wrap (1) only the object it creates reference to, and (2) only in the register it is given as an operand (i.e. it will not check other registers for presence of the same pointer).
This "pointer" implementation looks more like a call-by-sharing implementation instead of actually providing pointer-like capabilities. For instance, they allow only one-way communication - assigning new value to the pointer will not modify the object the pointer was created from.
For now this issue will remain open and the code will not be merged into devel
branch.
Closing as wontfix for now.
Add pointers as a limited, but lightweight alternative to references.