Ada for Game Developers: Linked Lists

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 8

  • @aleksandarstanisic1848
    @aleksandarstanisic1848 15 дней назад

    Ada like first programmer? Cool.

  • @jere_____
    @jere_____ 10 дней назад

    Thanks for the video! Curiosity: just rolling your own list for learning/fun or maybe a missing feature in the standard library list type? I liked how you went through your process, so this isn't a complaint, I was just curious.

    • @GetIntoGameDev
      @GetIntoGameDev  10 дней назад +1

      For sure! So it’s curiousity, but I also want to implement a robin hood hashmap so I can use it and start doing data oriented stuff in Ada

  • @FredPraca
    @FredPraca 9 дней назад

    As I'm a Ada type system freak, why Length function returns an Integer instead of a Natural ? :)
    I promise I'll try to fix myself on this :D

    • @GetIntoGameDev
      @GetIntoGameDev  9 дней назад

      I guess the question is, is it possible to have a length of zero, ie just passing in null? Pathological? Yes! But possible!

    • @FredPraca
      @FredPraca 9 дней назад +1

      @@GetIntoGameDev No, I mean Integer may be negative which is impossible whereas Natural are defind as Integer range 0 .. Integer'Last

    • @GetIntoGameDev
      @GetIntoGameDev  9 дней назад

      Fair enough! I’m used to the natural numbers starting from 1

    • @FredPraca
      @FredPraca 9 дней назад

      @@GetIntoGameDev These ones are called Positive in Ada type system