3

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.?

kludg
  • 27,213
  • 5
  • 67
  • 118
  • 1
    Not 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 Answers2

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

3

For the moment the current FPC (2.6.0) doesn't support dotted unit names , exist a proposal about this feature and even a report, but appears closed and marked as won't fix

RRUZ
  • 134,889
  • 20
  • 356
  • 483