ID:178740
 
Are there any advantages/disadvantages to using var/const as opposed to #define? I realize #define seems to be more flexible because you can do something like this:

#define STARTLOC locate(1,5,1)

Are there any other notable differences that could effect which method to choose? From what I understand when the program is compiled the compiler actually goes in and replaces each occurence of it with what you define it as whereas var/const is treated like any other var (except of course it will blow up at you if you try to change it).