Here's an article I wrote on our development blog about using Pascal (Delphi) in our project, the Knights and Merchants Remake

Here's an article I wrote on our development blog about using Pascal (Delphi) in our project, the Knights and Merchants Remake
http://www.kamremake.com/devblog/pascal-the-best-of-both-worlds/

Comments

  1. Bill Meyer The article stated C++ is low level. Your argument about including C isn't very strong, given how you can extend the language with the C++ parts.

    As for inline variables, I vastly prefer it to the Delphi/C way. I find it makes the code easier to read as you don't have to jump up and down or hover your mouse. Howevet it's not just a matter of taste. It allows for more fine grained scopes and lifetimes, which in my experience leads to less bugs. Though in Delphi it wouldn't be as effective due to lack of RAII.

    Anyway, I guess my brain is just wired in a way which makes me like C++ more than other Delphi coders :-)

    ReplyDelete
  2. Asbjørn Heid Yes, well, there are also people who like BASIC. ;) 

    I made no argument about C as a subset of C++. It's plain fact. That was decided because they did not want to break existing C code, but insinuate C++ into the developers' view by way of compatibility.

    ReplyDelete
  3. Bill Meyer My point is that while C++ allows you to be very low level due to it's C inheritage, the new bits allow you to write very high level code, even if it may look low level.

    Random example, check out http://kylelutz.github.io/compute/boost_compute/tutorial.html#boost_compute.tutorial.transforming_data which generates an OpenCL kernel, compiles it and executes it on a OpenCL device.

    Ok so it's using iterators which are objects, but it doesn't look significantly different from something you could write in C. However what the code does is on a whole new level IMHO.

    ReplyDelete

Post a Comment