I'm trying to compile this little bit of code:
cGameObject: class
var
x:int32
y:int32
vx:int32
vy:int32
end class;
However the compiler generates an error. Could someone please lok into this.
Sincerely,
Open Source Pong
What's the error?
Is that just a part of what you're compiling or the whole? If that's it, there is nothing to compile, those are just declarations.
Try this...
type
cGameObject: class
var
x:int32
y:int32
vx:int32
vy:int32
endclass;
endtype;
Nathan.
Quote from: Open Source Pong on April 15, 2008, 04:13:31 PM
I'm trying to compile this little bit of code:
cGameObject: class
var
x:int32
y:int32
vx:int32
vy:int32
end class;
However the compiler generates an error. Could someone please lok into this.
Sincerely,
Open Source Pong
You need semicolons at the end of each declaration, e.g., "vy:int32;"
hLater,
Randy Hyde