[Dlang Episode 108] D Language - Classes vs struct - part 2 of N - how to choose which?

Поділитися
Вставка

КОМЕНТАРІ • 6

  • @bitpilot79
    @bitpilot79 Місяць тому +5

    Nice to see new D videos coming from you.

    • @MikeShah
      @MikeShah  Місяць тому

      Cheers, and more coming too 😁

  • @GaryChike
    @GaryChike Місяць тому +1

    Thanks Mike for D'structing this for us!

    • @MikeShah
      @MikeShah  Місяць тому +1

      Hehe -- you are most welcome Gary 😁More D videos on the way!

  • @kyleheaser2385
    @kyleheaser2385 Місяць тому +1

    I presume Classes may contain Structs and Structs may contain Classes? Does this throw a wrench into the struct class dichotomy?

    • @MikeShah
      @MikeShah  Місяць тому

      Indeed, that is allowed! It doesn't so much through a wrench into things as far as how they're used. However, if you use betterC (ua-cam.com/video/_lmY2iOAf_k/v-deo.html) -- you'll want to stick to composition using only structs.