project-navigation
Personal tools

Author Topic: partially switching to C++ ?  (Read 2098 times)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
partially switching to C++ ?
« on: October 13, 2008, 12:57:00 am »
I bet this topic has been discussed before, but unfortunately the forum search function doesn't let me search for 'C++', it only comes up with occurrences of 'C', which is quite A LOT :(

I haven't seen much of the UFO code, but what I have seen seems to be 'well structured' and could be easily converted into C++ classes.
A prominent example is dbuffer.c, which is kinda 'C++ done manually in C'. Which is not very efficient, both source- and runtime-wise :(

So could anybody plz
- come up with a link to a former discussion on that OR
- tell me why UFO is not moving to C++ ?

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: partially switching to C++ ?
« Reply #1 on: October 13, 2008, 09:24:47 am »
i become to contribute to UFO:AI, on GUI aspect only. So i dont realy know why (only C), but it maybe very important too (begin a C++ convertion). I am refactoring the src/client/menu to reduce dependancies with the main code. I hope, finnaly this work will allow an easy switch into a C++ code, although to main code continue to use C.

Good luck.  :)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: partially switching to C++ ?
« Reply #2 on: November 17, 2008, 11:08:13 pm »
I still hoping for an answer to my initial question. To make it easier for those who know, let's make it multiple choice:

1) It has never been discussed.

It has been discussed, but
2) not in these forums, so there is no link
3) nobody has the time to dig up the link
4) it is an 'off-limits'-topic (like engine change or save in battle)

5) something else...

Just asking for one-digit answer...;)

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: partially switching to C++ ?
« Reply #3 on: November 17, 2008, 11:40:00 pm »
I don't think it has been discussed. But I don't know for sure.