[fpc-devel] Packages, Generics
    Michael Van Canneyt 
    michael at freepascal.org
       
    Sun Sep 12 09:39:51 CEST 2010
    
    
  
On Sun, 12 Sep 2010, Willibald Krenn wrote:
>
> Hi!
>
> Today I was thinking about fpc packages (whenever I am using this word, I 
> mean Delphi-style-DLL-packages) and what difficulties might arise when 
> implementing them. In my opinion, doing packages for D6-like Pascal should 
> not be conceptually hard. It'll be more of a technical challenge to fiddle 
> with the compiler internals.
>
[snip]
>
> So I am of the opinion that 'real' generics would make packages possible: 
> Yes, generated code might be less efficient (int64 implementation for all 
> signed ordinals), or there might be code duplication (for each ordinal type 
> one implementation), but things would work. With the current implementation 
> of generics packages are a no-go, I am afraid.
Packages have nothing to do with the language feature. The difficult thing
is run-time resolving of all symbols. What the nature is of these symbols 
is really not relevant.
Michael.
    
    
More information about the fpc-devel
mailing list