Jump to content
  • Advertisement

BlaF

Member
  • Content Count

    0
  • Joined

  • Last visited

Community Reputation

123 Neutral

About BlaF

  • Rank
    Newbie
  1. I'm no fluent haskeller yet, but I would have wrote the banana function with a let construct instead of the recursive call to self: banana goid = let b = GameObject { goID = goid , render = printf "banana: id %d\n" goid , update = b } in b for the first updatable instance, and for the second: banana goid = let b = GameObject { goID = goid , render = printf "banana: id %d\n" goid , update = const $ b } in b For what I understood (why recursive let make space efficient, Tying the Knot), this gives a truly "identical banana" each time update is called instead of a chunk that yields a similar banana.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!