[fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

Maciej Izak hnb.code at gmail.com
Wed Jan 27 11:09:58 CET 2016


2016-01-27 10:51 GMT+01:00 Ondrej Pokorny <lazarus at kluug.net>:

>
> And then there is the problem with duplicate unit names. The Lazarus
> version of your units could e.g. use an extra namespace.
>
>
Maybe is good idea to follow Delphi standards and add System.* namespace
for FPC RTL modules. Delphi allows following additional compiler switches
to handle System namespace:

Unit scope names (-NS):
-NSSystem.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;System;Xml;Data;Datasnap;Web;Soap;Winapi;Vcl;Vcl.Imaging

Unit aliases (-A):
-AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE

For Lazarus could be added "Lazarus.*" namespace.
-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160127/7460e061/attachment.html>


More information about the fpc-devel mailing list