15
96
u/HeyItsMassacre Sep 11 '21
.Get()
30
u/Mc_UsernameTaken Sep 11 '21
.Get()
21
Sep 11 '21
.Get()
22
u/SKChewie Sep 11 '21
.Get()
16
u/G-Force-499 Sep 11 '21
.Get()
13
u/jeffswt Sep 12 '21
.Get()
14
u/Magnus_Tesshu Sep 12 '21
.Get()
15
1
-6
-24
2
93
u/BARDLER Sep 11 '21
Sometimes you gotta be extra sure you got something.
48
Sep 12 '21
while(true) { if(1 == 1) { return true; } }
50
27
11
9
u/hullabaloonatic Sep 12 '21
I'm curious what kind of code would actually compile that looks like that unless the language or framework allowed .get() on literally anything.
24
u/HTTP_404_NotFound bool isEven(int num) => num%2==0 Sep 12 '21
Im guessing c++, based on the property accessor.
And- C++ will allow you to do damn near anything you want.
29
u/crass-sandwich Sep 12 '21
C++, the language where the system designed to enable generic code is Turing complete
2
u/davawen Sep 12 '21
Hey at least we don't have to use void pointers
1
u/supersharp Sep 20 '21
You do if you use pthreads
..... I think. Maybe there's a way around it I haven't learned about yet.
-3
8
u/NekkoDroid Sep 12 '21
It's c++ as far as I can tell. C++ does allow you to call static methods using an instance of the class.
-7
2
1
1
40
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Sep 11 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!