Is there anyway to use the property like behavior?

前端 未结 3 1266
终归单人心
终归单人心 2021-01-29 12:11

I have the following formula

X := X + F*(1-i div n);

Where

X, F, i, n: integer;

The code I\'m using is this<

3条回答
  •  时光取名叫无心
    2021-01-29 12:52

    Is there anyway to use the property like approach outside a class/record?

    No, property getters and setters can only be implemented in records and classes.

提交回复
热议问题