I will wait for native functions, i hope wishes will become reality

Usually easy things come at a price. A linked list has a lot of levels of indirection (memory access).Denis wrote:I never use array, only linked list, it's so easy.
Whoops sorry, didn't want to perturb the status quo. (uhmmm I want to try the eye-rolling me too: :roll:. Nice!)Denis wrote:luis,
may be you're right, but that's how i code :roll:
That completely address the multiple indirections argument ! Case closed !Denis wrote: To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
Actually it is not needed anymore, as we do use custom, block optimized allocator: http://www.purebasic.fr/blog/?p=8Denis wrote:luis,
may be you're right, but that's how i code :roll:
To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
Ok Fred for linked listFred wrote:Actually it is not needed anymore, as we do use custom, block optimized allocator: http://www.purebasic.fr/blog/?p=8Denis wrote:luis,
may be you're right, but that's how i code :roll:
To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
I agree, embedding lists, arrays and maps into structures would be extremely useful. Because it isn't possible at the moment, I had to write my own procedures for both linked lists and hash tables (maps). Implementing this would make things much easier for me, and probably for many others as well...srod wrote:Being able to embed dynamic lists / arrays / maps within arbitrary structures, for my money, is the most pressing requirement now for PB - at least in terms of the work I do.Not a complaint as such because PB is awesome and there are always ways around such things. In these cases I simply use a suite of utilities which I have built up over the years. Still, adding this natively to PB would, to my mind, plug the last remaining gap for me.
This is definitely the one feature I would like to see the most as well.srod wrote:Being able to embed dynamic lists / arrays / maps within arbitrary structures, for my money, is the most pressing requirement now for PB - at least in terms of the work I do.Not a complaint as such because PB is awesome and there are always ways around such things. In these cases I simply use a suite of utilities which I have built up over the years. Still, adding this natively to PB would, to my mind, plug the last remaining gap for me.