Tlist and Type

Started by Baggey, September 18, 2023, 14:12:08

Previous topic - Next topic

dawlane

Quote from: Baggey on September 28, 2023, 17:19:12Derron  i have no idea what you mean by brl.mod/collections.mod and i do not understand "containers"
A container is just another name for a data structure where items are stored and accessed. The simples example is the linked list module (aka TList).
@Baggy: I've updated my fakeArray post as there was a bug that the compiler didn't pick up or issue any kind of warning.

Baggey

Quote from: Midimaster on September 28, 2023, 19:01:46
Quote from: Baggey on September 28, 2023, 17:19:12...i have no idea what you mean by brl.mod/collections.mod and i do not understand "containers" :-[ ...

Im also suprised. But it looks like there is a default TStack type in BlitzMax NG. There is no thematic description in the BlitzIDE HELP, but if you write...
a:TStack = New TStack... and then press F1, the related command reference will appear.

Perhaps we should write some tutorial about this collection.mod based new Data Types... there are much more: TStack, TSet, TArraySort, TTreeMap, TQueue



@Midimaster Yeah a Tutorial, would be good. BlitzMaxNG is an awesome language but the documentation :-\

Im by no means knocking anybody, but it seems like all the basics where documented and then someone got bored doing it? or not paid?

What is collection.mod?

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

dawlane

Quote from: Baggey on September 29, 2023, 14:52:00What is collection.mod?
It's the module that contains all those "containers" that Midimater has mentioned.

Baggey

Thankyou, guys for all the help.

I am now going to integrate the ideas of @Midimaster and @dawlane Suggestions and code. Into the C64Blitzmax and see if i can get more functionality happening. Im also working on the 1541 Bam reader to get code into my emulator as well. This might take a few weeks given my timescale and the free time available to me in which i have to code with.

The C64 for me has been a little quirky at times, but has been a great way to learn Blitzmax! and im just on the edge of what Blitzmax is capable off.

If all goes well ill have more progress on the C64Blitzmax 8) in the meantime im also re-writting the Vic20 Emulator like the C64. Hopefully ill have that flashing cursor and life for her too ;)

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!