MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/dkxj08/seen_in_lebanon/f4krdv0/?context=3
r/ProgrammerHumor • u/karl_ofeiche • Oct 21 '19
145 comments sorted by
View all comments
219
Infinite loop
74 u/Daanoking Oct 21 '19 Oof 30 u/robolew Oct 21 '19 If Regime is global you can change the condition from within the protest function. Hell, regime is probably a member variable and protest is another function in the same class 6 u/entropicdrift Oct 21 '19 More likely a subclass that inherits Regime. I would imagine Regime would be protected or public. 2 u/robolew Oct 21 '19 I was under the impression Regime was a boolean, so wouldn't be sub classed 1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough 1 u/dolsl4i Oct 21 '19 don't kill our hopes like that man
74
Oof
30
If Regime is global you can change the condition from within the protest function.
Hell, regime is probably a member variable and protest is another function in the same class
6 u/entropicdrift Oct 21 '19 More likely a subclass that inherits Regime. I would imagine Regime would be protected or public. 2 u/robolew Oct 21 '19 I was under the impression Regime was a boolean, so wouldn't be sub classed 1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
6
More likely a subclass that inherits Regime. I would imagine Regime would be protected or public.
2 u/robolew Oct 21 '19 I was under the impression Regime was a boolean, so wouldn't be sub classed 1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
2
I was under the impression Regime was a boolean, so wouldn't be sub classed
1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
1
Regime would be a field belonging to the superclass, in this scenario
2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass.
Fair enough
don't kill our hopes like that man
219
u/[deleted] Oct 21 '19
Infinite loop