Re: [fpc-pascal] multiple inheritence

2009-10-05 Thread David Emerson
On Sat 3 Oct 2009, dmitry boyarintsev wrote: > t_double_list = class (t_list_frame) > private > flist1 : t_list_frame; > flist2 : t_list_frame; > function internal_add (const class_in : class_type) : boolean; > end; The idea behind my concept of t_double_list is that it is essentially one

Re: [fpc-pascal] multiple inheritence

2009-10-04 Thread David Emerson
On Sat 3 Oct 2009, Micha Nelissen wrote: > It's not as if combining those gives you the best of both worlds ... > if the sorted list needs to keep its list sorted, having the > sequential list won't make iterating faster ... > > Micha Having a sequential list makes iterating through the list *pos

Re: [fpc-pascal] multiple inheritence

2009-10-03 Thread Micha Nelissen
David Emerson wrote: lists containing the same elements: one sorted, one unsorted. The reason to have both: sorted -> fast search; unsorted -> sequential navigation through the list while elements are being added. It's not as if combining those gives you the best of both worlds ... if the sor

Re: [fpc-pascal] multiple inheritence

2009-10-03 Thread dmitry boyarintsev
On Sat, Oct 3, 2009 at 7:24 AM, David Emerson wrote: > I'd like to create a "double-list" type, which maintains two parallel > lists containing the same elements: one sorted, one unsorted. The > reason to have both: sorted -> fast search; unsorted -> sequential > navigation through the list while

[fpc-pascal] multiple inheritence

2009-10-03 Thread David Emerson
Hi all, I've been reading about multiple inheritance in the list archives, and from what I gather, it is only supported through a combination of "interfaces" and classes; one cannot inherit from two classes. As far as I can tell, interface types do not allow implemented virtual methods -- only