Forum > General
RTL Namespaces
PascalDragon:
--- Quote from: deadserious on June 15, 2022, 09:29:10 am ---If I were to take on the effort of renaming RTL units to their namespace, would that be a welcome PR for the team?
--- End quote ---
While we do think about introducing namespaces in the future as marcov said this is not a topic that is simply done, mainly because we also support operating systems that have a 8.3 file name limit. So, no, a PR would not be welcome for this as there are quite some questions to solve.
--- Quote from: deadserious on June 15, 2022, 09:29:10 am ---Or is there no interest in Delphi namespace compatibility?
--- End quote ---
It won't be fully compatible anyway. E.g. unit Contnrs might just as well be placed in FCL.Contnrs instead of System.Contnrs (I'm not saying that it will be, but it's at least a possibility). And the LCL units on the other hand will very likely use LCL as prefix instead of VCL.
Thaddy:
The latter is already no problem
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$macro on}{$define vcl:=lcl}As I wrote, it is only about the dot....
IOW then you can make prefixes disappear...
I asked Jonas for that macro extension a couple of years ago, but he dismissed that.
Now it bites, again...
marcov:
--- Quote from: PascalDragon on June 15, 2022, 02:19:59 pm --- It won't be fully compatible anyway. E.g. unit Contnrs might just as well be placed in FCL.Contnrs instead of System.Contnrs (I'm not saying that it will be, but it's at least a possibility). And the LCL units on the other hand will very likely use LCL as prefix instead of VCL.
--- End quote ---
I surely hope not ;)
jcmontherock:
However, for example, you can use "System.Delete()" to execute a procedure if you already have a "Delete()" procedure in your application. It's a little namespace.
marcov:
System is also the name of the always-there unit. This has worked since turbo pascal times.
Navigation
[0] Message Index
[#] Next page
[*] Previous page