Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Lazarus syntax

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Mar 08, 2016 3:06 am    Post subject: Lazarus syntax Reply with quote

Hey guys,

I lately ran into the following code
Code:
type
  TSomething = class
    name: String
    value1: String
    value2: String
    value3: DWord
    ...
  end;

  TSomethingElse = TFPList<TSomething>;


I don't understand what the last instruction is doing. I mean I know what the TFPList is, but I don't know what the <>-Syntax is doing.

Hope someone can lighten things up
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Tue Mar 08, 2016 5:15 am    Post subject: Reply with quote

it's a feature called generics. it makes dealing with different types easier without the need to typecast

tfplist is a generic list type. in this case it becomes a list type of TSomething

you can create that list type and then add items of TSomething to it, and also just index it and get objects of TSomething out of it

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites