[Gambas-devel] [Gambas-user] gb.adt component

Benoît Minisini gambas at ...1...
Sat Aug 25 14:10:56 CEST 2012


Le 25/08/2012 04:08, Tobias Boege a écrit :
>> As for "embedding" the list inside an object, i.e. doing what we usually
>> do in C, I think I understood what you want to do, but I don't think it
>> is really useful in Gambas.
>>
>> The only advantage I see is being able to find the next (or previous)
>> object of the list as soon as you have a reference on the object. Which
>> is not possible with the previous List class.
>>
>> To do that, maybe I would create another class (something like
>> 'StaticList'). But anyway it will not be easy to have a practical interface!
>
> So what did you mean by the StaticList class? Those embedded ones?
>
> Regards,
> Tobi
>

Forget that: I meant embedding the "next" and "previous" pointer of the 
list inside each object, as we do in C.

-- 
Benoît Minisini




More information about the Devel mailing list