CrossTalk Archive

Why not use scoped enums?

Why not use scoped enums?

Several developers have questions why we implemented enums as we did rather than using scoped enums.

Scoped enums were introduced later in Delphi’s evolution. CrossTalk supports back to Delphi 5, and especially for a 1.0 release we want too focus on as much unified code as possible. If scoped enums prove to provide tangible benefits over our existing solution we will certainly consider them for a future version when Delphi compilers are used that support them.