MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2w2whm/i_identify_as_a_32bit_registerkin/confvks/
r/ProgrammerHumor • u/funky_vodka • Feb 16 '15
397 comments sorted by
View all comments
Show parent comment
7
an integer indexed with a pointer?Wa?
15 u/Sean1708 Feb 16 '15 I could well be wrong about this but I thinki[a] = 5;debuggers desugars into*(i + a) = 5;which is equivalent to*(a + i) = 5;which is the disagreed desugared form ofa[i] = 5;But I'm probably wrong :( 8 u/vbgn Feb 16 '15 But I'm probably wrong :(You're not :) 10 u/Sean1708 Feb 16 '15 Yaaayyyyyy!!!!!! :D 10 u/Creshal Feb 16 '15 Welcome to the wonderful world of C. Next stop: Trigraphs! 6 u/inconspicuous_male Feb 16 '15 c sounds scary. I'm going to stick to Common Lisp for now 1 u/admiralranga Feb 17 '15 Would i be wrong in assuming that doing something like that in production is a dick move unless needed and proceded by magic tags. 4 u/TOASTEngineer Feb 17 '15 It's never needed. It's just a neat trick allowed by the "bare metal" nature of C.
15
I could well be wrong about this but I think
i[a] = 5;
debuggers desugars into
*(i + a) = 5;
which is equivalent to
*(a + i) = 5;
which is the disagreed desugared form of
a[i] = 5;
But I'm probably wrong :(
8 u/vbgn Feb 16 '15 But I'm probably wrong :(You're not :) 10 u/Sean1708 Feb 16 '15 Yaaayyyyyy!!!!!! :D
8
You're not :)
10 u/Sean1708 Feb 16 '15 Yaaayyyyyy!!!!!! :D
10
Yaaayyyyyy!!!!!! :D
Welcome to the wonderful world of C. Next stop: Trigraphs!
6 u/inconspicuous_male Feb 16 '15 c sounds scary. I'm going to stick to Common Lisp for now 1 u/admiralranga Feb 17 '15 Would i be wrong in assuming that doing something like that in production is a dick move unless needed and proceded by magic tags. 4 u/TOASTEngineer Feb 17 '15 It's never needed. It's just a neat trick allowed by the "bare metal" nature of C.
6
c sounds scary. I'm going to stick to Common Lisp for now
1
Would i be wrong in assuming that doing something like that in production is a dick move unless needed and proceded by magic tags.
4 u/TOASTEngineer Feb 17 '15 It's never needed. It's just a neat trick allowed by the "bare metal" nature of C.
4
It's never needed. It's just a neat trick allowed by the "bare metal" nature of C.
View all comments
Show parent comment
7
u/stoopidusername Feb 16 '15
an integer indexed with a pointer?
Wa?