插入符号点 (^.) 是什么意思? [英] What does caret dot (^.) mean?

查看:160
本文介绍了插入符号点 (^.) 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的 Pascal 代码是什么意思?

What does the below Pascal code mean?

p^.rlink=q
q^.llink=p

推荐答案

pascal 运算符 ^. 类似于 C 和 C++ 中的运算符 ->.

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

它取消引用指针(在您的情况下,p 应定义为 var p: ^type)并访问记录中的变量,在这种情况下,rlinkllink.

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.

这篇关于插入符号点 (^.) 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆