On Thu, 2 Apr 2015, Andrew Brunner wrote:
On 4/2/2015 11:46 AM, Michael Van Canneyt wrote:
Namespaces are available as dotted units ?
Namespace as dotted units? I use 3.1.1 compiled here so there is no problem.
FPC since as far as I recall (svn) has had support for naming units with
multiple dots. I've had tons of units with includes and I dot them for quick
functionality review in directory listings.
Hmmm... The only problem is it seems pretty cheap. I love the advanced look
of my complex units.
So it's a matter of personal preference, not functionality.
Any serious discussion stops there, of course:
De gustibus non disputandum est.
I would have to break out each unit and maintain a
bunch of separate units. I could see how this was a delphi-like feature but
its not done in a modern fashion.
To be sure, it was introduced to be delphi compatible.
Whether namespaces are 'modern','advanced' or not is a matter of debate.
In the end (at the assembler level) it's all a flat namespace anyway.
At any rate, your choice of the word 'fashion' was probably spot-on:
fashion changes at least twice a year :)
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal