The Flyweight Pattern - Programming Design Patterns - Ep 11 - C++ Coding

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ •

  • @reverse_shell
    @reverse_shell 2 роки тому

    Really neat design pattern and answered a few questions I had about how to not duplicate the creation of objects and reuse. Another great video added to this series. Keep up the great work Matt!

  • @9IPbINCB3T
    @9IPbINCB3T 2 роки тому

    hello, will you continue rpg playlist, making opengl graphics for it?

  • @fstmr1090
    @fstmr1090 2 роки тому

    What does the “static struct” definition do? I didn’t think that was valid in c++

    • @CodeTechandTutorials
      @CodeTechandTutorials  2 роки тому

      Thanks for the question. It's almost valid, would have to do it slightly differently for that to work but obviously we didn't do that one in the end. A valid way would look like: static struct {} var_name;

    • @blinkofnight
      @blinkofnight 2 роки тому

      Same thing as for C, that defines a structure and the static instance of it within current compilation unit with main(). It won't be accessible via "extern" declaration from other compilation units.