Is it possible to port Delphi unit with a scoped name like MyLib.Classes.pas
to FPC (ver 2.6.0) without renaming it to remove the scope prefix MyLib.
?
Asked
Active
Viewed 307 times
3

kludg
- 27,213
- 5
- 67
- 118
-
1Not that I'm aware of. That (and other incompatibilities) were the reason for separate FMX units targeting iOS. – Uwe Raabe Aug 30 '12 at 16:45
-
1@TLama unfortunately not: http://bugs.freepascal.org/view.php?id=14439 – kludg Aug 30 '12 at 16:55
-
@Serg, like David pointed, the link from my (now deleted) comment was to the proposals and ideas page... – TLama Aug 30 '12 at 16:58
-
If they want to have unit names as valid identifiers they probably could use dotless unit name aliases instead - just a guess. – kludg Aug 30 '12 at 17:31
2 Answers
7
FPC's Development version (2.7.1) does support dotted unit name. Please see http://wiki.freepascal.org/FPC_New_Features_Trunk#Delphi-like_namespaces_units

Inoussa OUEDRAOGO
- 507
- 2
- 5
-
2Interesting. Closed as Won't Fix, and now they're implementing it? – Mason Wheeler Aug 30 '12 at 18:37
-
`FPC 2.7.1` has A LOOOOOONG way for it to be actually released. Try summer of 2014/2015. – user3060326 Feb 26 '14 at 23:34