[fpc-pascal] Scoped enums and inferred types

Benito van der Zander benito at benibela.de
Wed Feb 21 23:41:50 CET 2018

Hi Fpc-pascal Users,

> I simply rely on my IDE (Lazarus, Visual Studio)  to complete long 
> identifier names for me so that I don't have to. *shrugs*

  but you still need to read the identifiers and when they are too long, 
that takes time, too

> How does that look?

No idea how it looked, but it could look like this:

uses definingUnit.TTileSortingFlag;

-> you need to write TTileSortingFlag.Static

uses definingUnit.TTileSortingFlag.Static;


uses definingUnit.TTileSortingFlag.*;

-> you can just write Static


with TTileSortingFlag do

to just write Static

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180221/f557e1ae/attachment.html>

More information about the fpc-pascal mailing list