Singly-linked list/Element definition: Difference between revisions

Content deleted Content added
m mass lang tag
m →‎{{header|Delphi}}: lang tag for lost delphi
Line 76: Line 76:
A simple one way list. I use a generic pointer for the data that way it can point to any structure, individual variable or whatever. Note that in Standard Pascal, there are no generic pointers, therefore one has to settle for a specific data type there.
A simple one way list. I use a generic pointer for the data that way it can point to any structure, individual variable or whatever. Note that in Standard Pascal, there are no generic pointers, therefore one has to settle for a specific data type there.


Type
<lang delphi> Type
pOneWayList = ^OneWayList;
pOneWayList = ^OneWayList;
OneWayList = record
OneWayList = record
pData : pointer ;
pData : pointer ;
Next : pOneWayList ;
Next : pOneWayList ;
end;
end;</lang>


=={{header|E}}==
=={{header|E}}==