Comment by mariusor

Comment by mariusor 3 months ago

6 replies

For game development? I imagine having to use only structs but not classes would be something that forces a "non idiomatic D" experience. Dynamic arrays sound like something that's very useful for a game. I don't know, there are plenty of features that are incompatible with better C that makes D, D. Generally speaking, garbage collection would be the biggest in my opinion.

WalterBright 3 months ago

You can still use classes in BetterC - you just have to allocate them yourself. D recently acquired "placement new" which makes that more convenient.

  • [removed] 3 months ago
    [deleted]
monkeyelite 3 months ago

Yeah this person is asking how to make the smallest executable. They don’t want garbage collection.

  • mariusor 3 months ago

    Garbage collection was about what I would be missing. I mentioned before what could be missing from OP's point of view.

    • monkeyelite 3 months ago

      Ok. I think the better C mode is cool and I think it’s worth a try for his interest and project.

      • mariusor 3 months ago

        I fully agree with you, but I think that if you present it as an option to somebody you should write a line or two about the potential downsides, so they have a better picture. Sorry if I was too abrupt in my criticism of your post. :)