Why is Hedgewars written in two programming languages?

5 replies [Last post]
Sauer2
User offline. Last seen 14 years 37 weeks ago. Offline
Joined: 2008-11-30
Posts: 53

I just wonder, why you have written the Interface in C++, but the game itself in Pascal.
Doesn't make this the code harder to look for?

DrDickens
DrDickens's picture
User offline. Last seen 12 years 41 weeks ago. Offline
Joined: 2008-08-28
Posts: 316

Sauer2
The interface (i guess you mean teh frontend) has it's own tasks. That's why it deserves an individual executive shell, and a different programming language. I just wonder why uncorr didn't use the machine code. And of cource my post makes no sense, cause i'm writing dis for the lulz.

БЫСТРО БЛДЖАД! Полицейский, что это необходимо для Вас, блджа, падает отсюда блджад!

Sauer2
User offline. Last seen 14 years 37 weeks ago. Offline
Joined: 2008-11-30
Posts: 53

Well, that is clear so far, but i don't understand, why unCorn splittes the programm in two pieces, instead progamming it as one tile in Freepascal/Lazarus or in C++.

unC0Rr
unC0Rr's picture
User offline. Last seen 16 weeks 2 days ago. Offline
Joined: 2006-11-27
Posts: 576

Actuall, we have three programming languages (third one is Haskell for network server). This topic was discussed here: http://hedgewars.org/node/532

Sauer2
User offline. Last seen 14 years 37 weeks ago. Offline
Joined: 2008-11-30
Posts: 53

Quote:
...and because of it I had to write SDL_* bindings myself.

o.O I guess SDL4Freepascal and JEDI didn't exist 3 years ago.

unC0Rr
unC0Rr's picture
User offline. Last seen 16 weeks 2 days ago. Offline
Joined: 2006-11-27
Posts: 576

I don't remember exact reason why these projects didn't help me. But it's not hard to make own bindings, just an hour of work Smile

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]