[fpc-pascal] Feature announcement: default namespaces
Ryan Joseph
ryan at thealchemistguild.com
Sun May 6 04:11:23 CEST 2018
> On May 6, 2018, at 12:23 AM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> For some users it might be cumbersome however to write the complete names (even though their IDE of choice might support them here) or maybe they have different sets of units with same names and interfaces, but different namespaces (e.g. ProductX and ProductY which contain wrappers units for the 3rd party products X and Y with a common interface). Of course in the latter case these can be switched using ifdefs or some creative usage of macros, but that can be done simpler.
I don’t understand what this is for because “namespaces” in FPC are optional anyways right? I’ve only used them to resolve name conflicts but if they’re optional then doesn’t that implicitly imply they're default also? Maybe a concrete example would help to explain.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list