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.
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel