Thread: Why I hate c
View Single Post
  #4   Spotlight this post!  
Unread 26-02-2004, 12:14
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Why I hate c

also the reason

Code:
Process_Data_From_Local_IO;
does not give an error is because it is a valid statement. it evaluates to the memory address of the Process_Data_From_Local_IO function. Now you might ask, "well, why doesn't if give a warning at least, because the line doesn't do anything"? Well, then you wouldn't be able to use the following code without a warning either:

Code:
x++;
because technically, that line just as much of "nothing". it evaluates to the value of x, and then increments it.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)