2014-10-17 6 views

답변

3

그것은 내가 아는 한, "종류"를 의미합니다.

2

델파이에는 공식적으로 승인 된 여러 접두사가 있습니다.
이들은 모두 Borland 규칙에 따르며 컴파일러에 의해 시행되지 않습니다.

 
Prefix | Used for | Notes 
-------+----------+--------------------------------------------- 
    T | types | Denotes a structured type, class or record 
    I |interfaces| For interfaces, e.g. IInterface 
    F | Field | Private Field in a class or record 
    xx | enum  | Enumeration members have a 2 char prefix 
     |   | e.g. fsBold, fsItalic for the TFontStyle enum 
    A | params | deprecated ! All method params at one point started with an `A`. 
        this convention is no longer encouraged. 

Note that the capitalization is as shown. 

델파이 접두사를 사용하는 이유는 언어가 대소 문자를 구분하지 않습니다 것을, 그래서 종류의 모자를 상수 ALLCAPS을 사용하고 선도의 C/자바 트릭이 작동하지 않습니다.

이 모든 내용은 Object Pascal Style Guide,보다 구체적으로는 Naming Convention에 요약되어 있습니다.
그것은 모든 소스 코드를

+2

에 따라 볼랜드 등이 쓴 스타일의 I의 종류의'A' 접두사처럼,하지만, 그것은 충돌이나 혼란의 위험을 줄일 수 있기 때문이다. 예를 들어'FLimit : = ALimit'을 쓰는 경우가 있습니다. –