[Lazarus] mbox mail format conversion to SQL database

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Apr 6 16:26:32 CEST 2009


On Mon, Apr 06, 2009 at 11:07:48AM +0200, Hans-Peter Diettrich wrote:
>  From a discussion I want to present this idea:
> 
> FPC (and Delphi) could extend the Uses syntax to
>    USES <unitname> [IN <filename>] [AS <identifier>]
> 
> The optional AS part would allow to create an alias (shortcut...) for 
> units of possibly conflicting (same) name. IMO a simple implementation 
> of the most important benefits of namespaces, that does not require the 
> introduction of orthogonal namespaces in addition to units.

With full path? That is generally frowned upon, since it makes projects
unrelocatable.

Without full path is not possible, since that would interfere with how the
compiler finds files

> While this suggestion is not related to Lazarus, I still would 
> appreciate comments from the community.

The problem is that most systems with namespaces naturally allow duplicate
entries because they map somewhere to a hierarchy, making items with
duplicate names unique because of their location in their hierarchy. (iow
System.objects.bla <> system.bla)

FPC/Delphi have free search of files, which conflicts with that, and a
filename would be a bad hack to introduce that. Any other solution requires
either a hierarchy, or scanning the internals of all files (to recover the
qualification) in the path
before every compile.

IMHO these are hacks that are worse than the problem, specially for an open
source project, where most units aret available in source.




More information about the Lazarus mailing list