此图标在Delphi代码编辑器中是什么意思?

问题描述

在Delphi 10.2.3中,我最近开始看到这个奇怪的图标。有谁知道这意味着什么?我说的是带有减号的红色圆圈。

Screenshot of a line of code: "property Halt: Boolean read FHalt write FHalt". At the end of the line,there is an icon: a red circle with a white minus sign inside it.

解决方法

应该使用此图标通知您当前行调用Halt系统过程。

您会使用ContinueBreakExit得到类似的图标:

Screenshot of editor window with Continue,Break,Exit,and Halt symbols

在这种情况下,您有一个不幸的名称为Halt的属性,因此编辑器将此属性与Halt系统过程相混淆。

使用此属性名称是一个坏主意。