global-state

Can pure functions read global state?

Please note: by a "pure" function, I don't mean "pure virtual" I'm referring to this If a function "reads" some global state, does that automatically render it impure? or does it depend on other factors? If it automatically renders it impure, please explain why. If it depends on other factors, please explain what are they. ...

Global state in asp.net mvc application

Problem: Our web console shows a list of all computers on which our application is installed. Each machine has some identification information that can be associated with it. Simple strings like department name, team name etc. We need to make it such that the user can change the name of these identification fields and add/remove as many ...

Is Perl's flip-flop operator bugged? It has global state, how can I reset it?

I'm dismayed. Ok, so this was probably the most fun perl bug I've ever found. Even today I'm learning new stuff about perl. Essentially, the flip-flop operator .. which returns false until the left-hand-side returns true, and then true until the right-hand-side returns false keep global state (or that is what I assume.) My question is c...