Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我班级的教科书警告不要混淆@attr = ...以及attr := ...在使用班级属性时。但是,它并没有解释有什么区别。我知道在使用单元格时,MyCell := ...会更改单元格的内容,但我从未见过@something = ....
@attr = ...
attr := ...
MyCell := ...
@something = ...
C={NewCell 4} @C=3 {Browse @C}
上面的代码什么也不输出,因为@C=3 与
{Cell.access C $}=3
并且作为函数 {Cell.access C $} 返回 4,它与
4=3
要为 Cell 分配新值,您必须使用 `:='