BASIC

Author Topic: A few feature requests  (Read 1563 times)

Offline 8bitBoss

  • Mc. Print
  • *
  • Posts: 15
  • May the force be with you
    • View Profile
    • http://astutekitsune.tumblr.com
A few feature requests
« on: 2012-Apr-24 »
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10651
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: A few feature requests
« Reply #1 on: 2012-Apr-24 »
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.

Offline 8bitBoss

  • Mc. Print
  • *
  • Posts: 15
  • May the force be with you
    • View Profile
    • http://astutekitsune.tumblr.com
Re: A few feature requests
« Reply #2 on: 2012-Apr-24 »
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10651
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: A few feature requests
« Reply #3 on: 2012-Apr-24 »
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 ;)
« Last Edit: 2012-Apr-24 by Kitty Hello »