C++ Builder Tutorials

C++ Builder forbidden words

Reserved words cannot be used as identifiers. That is, reserved words cannot be used as names for:

Variables
Constants
Functions
Classes
Enums

If you attempt to use a reserved word as an identifier, the compiler gives an error message, such as:
XYZ is not a valid identifier

A non-exhaustive list of reserved words:

A
 and
 array
 asm
B
 bitand
 bitor
 bool
 break
C
 case
 catch
 char
 class
 concept
 const
 continue
D
 decltype
 default
 delete
 deprecated
 do
 double
 dynamic_cast
E
 else
 enum
 explicit
 export
 extern
F
 false 
 float
 for
 friend
G
 goto
I
 if
 inline
 int
L
 long 
M
 mutable
N
 namespace
 new
 noreturn
 not
 nullptr
O
 operator
 or
 or_eq 
P
 pascal
 private
 protected
 public
R
 register
 requires
 restrict
 return
S
 short
 signed
 sizeof
 static
 struct
 switch
T
 template
 this
 throw
 true 
 try
 typedef
U
 union
 unsigned
 using
 uuidof 
V
 virtual
 void
 volatile
W
 wchar_t
 while
X
 xor
 xor_eq