DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Some Programming Levity  (Read 4,837 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Some Programming Levity
« on: December 27, 2012, 01:40 PM »
I was just doing a bit of programming, and typed:

Code: (csharp)
double

Well, I thought, wouldn't that be a waste of code if I didn't do this:

Code: (csharp)
double d

Unfortunately, I needed to get some actual work done, and couldn't do this:

Code: (csharp)
double d = awesome;

:P
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Some Programming Levity
« Reply #1 on: December 27, 2012, 03:01 PM »
*giggle*

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

Code
double d = *((double*) "awesome");

Well, HELLO THERE, 9.53555e-307 :)
- carpe noctem

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Some Programming Levity
« Reply #2 on: December 27, 2012, 03:12 PM »
*giggle*

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

Code
double d = *((double*) "awesome");

Well, HELLO THERE, 9.53555e-307 :)

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

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Some Programming Levity
« Reply #3 on: February 28, 2013, 03:22 PM »
;D
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Original address: https://www.donationcoder.com/forum/index.php?topic=33443.0