The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Comment Board Trivia by Nea2002-06-18 00:00:13
  C++ swap(a,b); by kajiir2002-06-18 00:04:10
    !!WRONG!! IT'S SURELEY NOT C++ !!!! by StSz2002-06-18 00:23:39
      !!RIGHT!! IT'S SURELY C++!!! by digitig2002-06-18 07:22:00
        I don't think so by tron-x 2002-06-18 10:41:10
Have you tested your statement? I don't have a C++ compiler handy but that statement just doesn't look right. Looks to me the original value of a is permanently lost once the innermost () is evaluated.

Anyway, I was thinking of Perl and the exact statement given in the answer above. I'm not familiar with Ruby, so wasn't aware of that. Isn't Ruby based on Perl? Or maybe the other way around. Also, there is nothing useful that can be done in a single statement in assembly language! Although I think some processors do have a statement that allows the swapping of two registers.
[ Reply ]
          a is not lost! by digitig2002-06-19 03:07:28

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)