Recent

Author Topic: Dot in the name of units  (Read 448 times)

dmitryb

  • Jr. Member
  • **
  • Posts: 69
Dot in the name of units
« on: July 31, 2024, 11:36:15 pm »
Hello.
From what version of FPC did it become possible to add a dot in the name of units, such as MyUnit.dot.pas?
Now I tried Lazarus 3.2. It doesn’t seem to give a compilation error, but I remember for sure that it gave an error before.

dsiders

  • Hero Member
  • *****
  • Posts: 1206
Re: Dot in the name of units
« Reply #1 on: July 31, 2024, 11:58:20 pm »
Hello.
From what version of FPC did it become possible to add a dot in the name of units, such as MyUnit.dot.pas?
Now I tried Lazarus 3.2. It doesn’t seem to give a compilation error, but I remember for sure that it gave an error before.

What I found...
https://wiki.freepascal.org/FPC_New_Features_3.0.0
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

cdbc

  • Hero Member
  • *****
  • Posts: 1496
    • http://www.cdbc.dk
Re: Dot in the name of units
« Reply #2 on: August 01, 2024, 07:34:42 am »
Hi
2.2.6 didn't mind dots either  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11723
  • FPC developer.
Re: Dot in the name of units
« Reply #3 on: August 01, 2024, 01:40:03 pm »
Note that  3.2 only added the -FN default namespace parameter, and only the next major version (trunk/main aka whatever comes after the 3.2.x series) has  RTL units in dotted notation.

I don't know the practicalities of the latter, how seamless it is, since last time I heard about it, it was linked to later other Delphi features like string=unicodestring

 

TinyPortal © 2005-2018