[コメント、大文字と小文字、特別な文字リテラル、予約語]
◆コメント
コメントを記述する方法には、次の3種類があります。
// ...
{ ... }
(* ... *)
◆大文字と小文字
Delphiでは、大文字と小文字は区別されません。「abc」と「ABC」は同じ変数として扱われます。
◆スペース
2文字で意味をなす演算子(:=,<=,>=)は、文字間にスペースを入れることはできません。
◆特別な文字列リテラル
文字として表現できない文字や、特別な意味を持つ文字をソースコードに表現するとき使用します。
| 表現 | 意味 |
| #10#13 | 復帰改行 |
| #10 | 復帰 |
| #13 | 改行 |
| #9 | タブ |
| '' | 文字列リテラルの中のシングルクオーテーション |
| #nn | 10進表記のASCII文字 |
| #$hh | 16進表記のASCII文字 |
◆予約語
and array as asm
begin
case class const constructor
destructor dispinterface div do downto
else end except exports
file final finalization finally for function
goto
if implementation in inherited initialization inline interface is
label library
mod
nil not object of or out
packed procedure program property
raise record repeat resourcestring
sealed set shl shr static string
then threadvar to try type
unit unsafe until uses
var
while with
Copyright c 2009, ohishi,All rights reserved.