Jump to content
FHannes

Generics for SCAR Titan

Recommended Posts

The latest pre-alpha version of SCAR Titan now supports the use of generics. I've currently removed the supported collections like TObjList and such as they will be replaced by generic classes in the future. At the moment these are not yet included.

 

For those who don't know what generics are, they allow you to define types that can be cast to a type later on.

 

Example:

type
 TArray<T> = array of T;

var
 IntArray: TArray<Integer>;

begin
end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...