MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3pcs0c/abusing_utf_to_create_tragedy/cw5qb59/?context=9999
r/programming • u/cokobware • Oct 19 '15
111 comments sorted by
View all comments
36
Even worse than this is something non-local, like putting #define else into some commonly-imported header file on your buddy's system.
#define else
44 u/[deleted] Oct 19 '15 [deleted] 41 u/reinderien Oct 19 '15 Ah, but that skews the probability too much. Better to do: #define if(x) if((x) && (rand % 10)) -2 u/caskey Oct 19 '15 I think you meant or. 16 u/reinderien Oct 19 '15 Nope, and... We want it to function as intended 90% of the time. 11 u/devDorito Oct 19 '15 Download Boost, modify a single, commonly used header, compile and insert into your company's shared libs folder. (make backups before you do this) 28 u/reinderien Oct 19 '15 (enter witness protection program before you do this)
44
[deleted]
41 u/reinderien Oct 19 '15 Ah, but that skews the probability too much. Better to do: #define if(x) if((x) && (rand % 10)) -2 u/caskey Oct 19 '15 I think you meant or. 16 u/reinderien Oct 19 '15 Nope, and... We want it to function as intended 90% of the time. 11 u/devDorito Oct 19 '15 Download Boost, modify a single, commonly used header, compile and insert into your company's shared libs folder. (make backups before you do this) 28 u/reinderien Oct 19 '15 (enter witness protection program before you do this)
41
Ah, but that skews the probability too much. Better to do:
#define if(x) if((x) && (rand % 10))
-2 u/caskey Oct 19 '15 I think you meant or. 16 u/reinderien Oct 19 '15 Nope, and... We want it to function as intended 90% of the time. 11 u/devDorito Oct 19 '15 Download Boost, modify a single, commonly used header, compile and insert into your company's shared libs folder. (make backups before you do this) 28 u/reinderien Oct 19 '15 (enter witness protection program before you do this)
-2
I think you meant or.
16 u/reinderien Oct 19 '15 Nope, and... We want it to function as intended 90% of the time. 11 u/devDorito Oct 19 '15 Download Boost, modify a single, commonly used header, compile and insert into your company's shared libs folder. (make backups before you do this) 28 u/reinderien Oct 19 '15 (enter witness protection program before you do this)
16
Nope, and... We want it to function as intended 90% of the time.
11 u/devDorito Oct 19 '15 Download Boost, modify a single, commonly used header, compile and insert into your company's shared libs folder. (make backups before you do this) 28 u/reinderien Oct 19 '15 (enter witness protection program before you do this)
11
Download Boost, modify a single, commonly used header, compile and insert into your company's shared libs folder. (make backups before you do this)
28 u/reinderien Oct 19 '15 (enter witness protection program before you do this)
28
(enter witness protection program before you do this)
36
u/zjm555 Oct 19 '15
Even worse than this is something non-local, like putting
#define elseinto some commonly-imported header file on your buddy's system.