Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.lang.pascal > #2

Re: Generic data structures

From "zeLittle " <noreply@noreply.net>
Newsgroups alt.comp.lang.pascal
Subject Re: Generic data structures
Date 2016-10-04 23:51 +0200
Organization ZL
Message-ID <op.yotwbaipc5b0tx@mainate> (permalink)
References <20160507163854.84ad1a21bf36c1a99cd7c3d1@gmail.com>

Show all headers | View raw


Le Sat, 07 May 2016 15:38:54 +0200, Anton Shepelev <anton.txt@gmail.com> a  
écrit:

> Number: byte;    { fields here }

Hello, you could replace the field Number with:
o_Data: TDataObject;    { fields here }

So, you'll can carry any type in a TDataObject's public field. Actually,  
the datatype byte is too typed, even compared to a generic pointer.

You could also look to TObjectList: TObject is generic enough to carry all  
what you want.

Regards.

Back to alt.comp.lang.pascal | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Generic data structures Anton Shepelev <anton.txt@gmail.com> - 2016-05-07 16:38 +0300
  Re: Generic data structures "zeLittle " <noreply@noreply.net> - 2016-10-04 23:51 +0200
  Re: Generic data structures "zeLittle " <noreply@noreply.net> - 2016-10-05 00:10 +0200

csiph-web