What does caret dot (^.) mean?

pascal

Solution

The pascal operator `^.` is similar to operator `->` in C and C++.

It dereferences the pointer (in your case, `p` should be defined as `var p: ^type`) and accesses a variable in the record, in this case, `rlink` and `llink`.

Problem

What does the below Pascal code mean? ``` p^.rlink=q q^.llink=p ```

Original source