Hello all,
For my code work up until now (scientific number-crunching) I have used C, but there are a handful of cases where it would be useful to have some object-oriented programming (e.g. for simulation of traders bidding on a stock market, or similar multi-agent work).
I've dealt with this kind of thing before by using structs, but it would be nice to be more elegant, and I suspect that it's not the fastest way to implement what I'm doing anyway.
So, I'm wondering if anyone can advise me on pros and cons of Objective-C versus C++. In principle I think I'd favour ObjC as it's a strict superset of C---right?---meaning I don't have to worry about minor code incompatibilities.
I also care a lot about code speed, so the question of which has the better libraries/compiler performance etc. is important.
Thanks in advance,
-- Joe
For my code work up until now (scientific number-crunching) I have used C, but there are a handful of cases where it would be useful to have some object-oriented programming (e.g. for simulation of traders bidding on a stock market, or similar multi-agent work).
I've dealt with this kind of thing before by using structs, but it would be nice to be more elegant, and I suspect that it's not the fastest way to implement what I'm doing anyway.
So, I'm wondering if anyone can advise me on pros and cons of Objective-C versus C++. In principle I think I'd favour ObjC as it's a strict superset of C---right?---meaning I don't have to worry about minor code incompatibilities.
I also care a lot about code speed, so the question of which has the better libraries/compiler performance etc. is important.
Thanks in advance,
-- Joe