A few feature requests

Previous topic - Next topic

8bitBoss

I'll make it short but clear:

1. Hashmaps (they are called dictionaries in Python). They are like dynamic arrays but are accessed via hashes i.e. Surename["Peter"] would return "Griffin"

2. Threading. I know this is a complex one (that may be already solved) but would make sense with quadcore CPUs being pretty common now and AMD going all the way to cores > raw power

3. Subs in types. Again: not sure if already possible. It would make managing types much much easier. I know this is already a step in the direction of OOP but it's something that I couldn't solve via inline so far.
i7 2700k
16GB DDR3 RAM
GeForce GTX 560 Ti
Windows 7 Ultimate 64Bit

Kitty Hello

There's a threading library on the forums.
You can do functions in types. A sub is just the same.

Hashmaps are a bit complicated, because GLBasic has no real template programming features. DDgui, however, has a string+to-string hash map that you can copy/paste to your projects.

8bitBoss

Thank you for answering so quick :)
I will take a look at the solutions but may I suggest that you consider the C++ Boost library ( http://www.boost.org/ ) to further extend GLBasic? It has a lot of features, is open source but not GPL.
i7 2700k
16GB DDR3 RAM
GeForce GTX 560 Ti
Windows 7 Ultimate 64Bit

Kitty Hello

#3
I use parts of the boost library. It's well known for C++ programmers.

[edit] Post from Slydog (Haslists, Dictionary) moved to: http://www.glbasic.com/forum/index.php?topic=8024.0
This is the SEUCK forum - definitely the wrong place ;)