ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Some Programming Levity

(1/1)

Renegade:
I was just doing a bit of programming, and typed:


--- Code: C# ---double
Well, I thought, wouldn't that be a waste of code if I didn't do this:


--- Code: C# ---double d
Unfortunately, I needed to get some actual work done, and couldn't do this:


--- Code: C# ---double d = awesome;
:P

f0dder:
*giggle*

- in C/C++, you could do...


--- ---double d = *((double*) "awesome");
Well, HELLO THERE, 9.53555e-307 :)

Renegade:
*giggle*

- in C/C++, you could do...


--- ---double d = *((double*) "awesome");
Well, HELLO THERE, 9.53555e-307 :)

-f0dder (December 27, 2012, 09:01 AM)
--- End quote ---

Ahhh... No matter how you cut it, the awesomeness of the double d ends up with 2 pointers~! :P ;D

kyrathaba:
 ;D

Navigation

[0] Message Index

Go to full version