|
|
Warp wrote:
> What if you want to change the image and want all the sprites using that
> image to see the change?
In Haskell, you must either manually track down all the sprites and
update them, or you must explicitly use mutable state.
Notice that this is a *design feature*; it prevents things from suddenly
changing when you didn't touch them, but only touched something they
indirectly reference. This behaviour can be unexpected in a large,
complex system. If you actually _want_ this, you must perform work to
make it happen. (Or... use mutable state.)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
|