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

Is this bad code or a language I have not learned? by dodrian2006-11-19 12:55:59
  In Java by emlaabs 2005-02-08 12:51:13
It would assign the pointer reference of salary_sucks to threshold assuming they are of the same object type and that statement would return true. IF they are not of the same object type it would not compile.

goto would be assigned the return value of the method com() in the object dice.

The else block would never be executed because the assignment statement in the if statement returns true always.

The end needs a semicolon to compile.
[ Reply ]
    Is end a command? I've never used it... by dodrian2005-02-08 12:54:21
      no, end is not a command by emlaabs2005-02-08 13:16:03

 

[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.)