<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">Hi</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">The new version of unit1.pas is here:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pastebin.com/vNdNeHQe">http://pastebin.com/vNdNeHQe</a></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="Tahoma" size="2"><a href="http://pastebin.com/vNdNeHQe"></a></font><div style="font-family: Tahoma; font-size: 10pt; ">Options changed, recompiling clean with -B</div><div style="font-family: Tahoma; font-size: 10pt; ">Hint: Start of reading config file /etc/fpc.cfg</div><div style="font-family: Tahoma; font-size: 10pt; ">Hint: End of reading config file /etc/fpc.cfg</div><div style="font-family: Tahoma; font-size: 10pt; ">Free Pascal Compiler version 2.4.2-0 [2010/11/11] for i386</div><div style="font-family: Tahoma; font-size: 10pt; ">Copyright (c) 1993-2010 by Florian Klaempfl</div><div style="font-family: Tahoma; font-size: 10pt; ">Target OS: Linux for i386</div><div style="font-family: Tahoma; font-size: 10pt; ">Compiling island_maker.lpr</div><div style="font-family: Tahoma; font-size: 10pt; ">Compiling unit1.pas</div><div style="font-family: Tahoma; font-size: 10pt; ">unit1.pas(98,3) Error: Identifier not found "Generic"</div><div style="font-family: Tahoma; font-size: 10pt; ">unit1.pas(98,3) Error: Error in type definition</div><div style="font-family: Tahoma; font-size: 10pt; ">unit1.pas(98,3) Fatal: Syntax error, ";" expected but "identifier TLIST" found</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">type</div><div><div><font class="Apple-style-span" face="Tahoma" size="2"> map_detail = record</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> FTerrain : Terrain_type;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> FTerrain_char : char;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Fdescription : description_type;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Fx, Fy, Flocation_number : integer;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Fexits : exit_type;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> end;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> // The Island class definition</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> TIsland = Generic // line 98</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> TList(map_detail);</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Items = array of map_detail;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> end;</font></div></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">As you can see I am having problems defining a Generic TList. Can someone please point out to me what I'm doing wrong here.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Best Regards,</div><div style="font-family: Tahoma; font-size: 10pt; ">PEW</div><br><div id="SkyDrivePlaceholder" style="font-family: Tahoma; font-size: 10pt; "></div><font class="Apple-style-span" face="Tahoma" size="2">> Date: Fri, 6 May 2011 11:55:27 +0100</font><br><font class="Apple-style-span" face="Tahoma" size="2">> From: henry.vermaak@gmail.com</font><br><font class="Apple-style-span" face="Tahoma" size="2">> To: lazarus@lists.lazarus.freepascal.org</font><br><font class="Apple-style-span" face="Tahoma" size="2">> Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> On 06/05/11 11:50, Luk Vandelaer wrote:</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ></font><br><font class="Apple-style-span" face="Tahoma" size="2">> > You declared the properties as read only, so assignments are not possible,</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Hehe, of course. Silly me for not noticing this.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Henry</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> --</font><br><font class="Apple-style-span" face="Tahoma" size="2">> _______________________________________________</font><br><font class="Apple-style-span" face="Tahoma" size="2">> Lazarus mailing list</font><br><font class="Apple-style-span" face="Tahoma" size="2">> Lazarus@lists.lazarus.freepascal.org</font><br><font class="Apple-style-span" face="Tahoma" size="2">> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</font><br></div> </body>
</html>