Thread: iLiad C++ for Iliad code
View Single Post
Old 11-25-2008, 12:16 PM   #1
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Exclamation C++ for Iliad code

Hello developers,

I'm experimenting with contenLister and thinking about using C++ for some parts. Biggest advantage are:

- easier (and cleaner) initialisation of structs (constructors)
- better grouping of structs and corresponding functions
- constants instead of defines
- easier memory management (cleanup in destructors)

Here is my current opinion

- use C++ for future development: yes, but just simple stuff (no complex class hierarchies etc)
- use C++ strings: maybe (if runtime c++ libs ar already on Iliad, and memory footprint of executables doesn't grow to much
- use STL (vectors, linked lists...) probably not (I expect big memory usage)

What do you think? I think this is an important choice... probably needs some thinking and experimenting

Happy hacking,
hansel is offline   Reply With Quote