Right, I tried just {$mode delphi} and just generic, and when both failed I tried them at the same time.<br><br>Maybe I'm not using a recent enough version?<br><br>Free Pascal Compiler version 2.4.4 [2011/05/01] for i386<br clear="all">
<div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div><br><div class="gmail_quote">On Wed, Oct 19, 2011 at 4:34 AM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Am 19.10.2011 10:01, schrieb Andrew Pennebaker:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sven, I added the {$mode delphi} macro and prefaced each type with the<br>
"generic" specification. I'm still getting errors.<br>
</blockquote>
<br></div>
Either add "{$mode delphi}" XOR "generic"<br>
<br>
E.g.<br>
<br>
Solution 1:<br>
<br>
unit Foo;<br>
interface<br>
type<br>
generic TGenArray<T> = array of T;<br>
...<br>
<br>
Solution 2:<br>
<br>
unit Foo;<br>
{$mode delphi}<br>
interface<br>
type<br>
TGenArray<T> = array of T;<br>
<br>
I just tested. Both work.<br>
<br>
Regards,<br><font color="#888888">
Sven</font><div><div></div><div class="h5"><br>
______________________________<u></u>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br>