warmi wrote:Well everything has its place but gotos and globals are definitely not a way to proceeed when dealing with reasonable system.
gotos are not very practical in C, so there is not very often a reason to use them, but globals, if used carefully, can greatly simplify the API of any system.
For example, in uEngine, the adress of the backbuffer is always contained in a global, same for the state of the input (mouse, keys), and I don't see any reason to not store those data as globals.
Personally, I think C++ is the way to go when dealing with a typical user space application but the reality is that a lot of people are used to the "old" ways of doing things and are highly resistant to any change
I think C++ is the way to go for people who know *exactly* what they are doing, my main fear with those OO language is that people often write very inefficient code with them (I've seen numerous example).
StephenC is right when it comes to use of new and malloc - as soon as the game loop is rolling, it is unwise to use these functions on a continuous basis on a PocketPC device.
The use of complex data structure is eased by the use of higher level language, linked list or tree are often used when there is absolutely no necessity..
On the other hand, while I can understand lack of threading , replacing loops with state driven code seems insane ...
For this system (automotive embedded calculator), this was absolutely needed.
Think of a game that have to go at 6000 Frame per Second and always handle all the critical operation at this frame rate...