snsii at yahoo.fr
Fri Aug 17 20:00:30 CEST 2001
Lets see this code :
a = CLASS
x : Integer;
b : a;
b.x := 10;
As I learned in the documentation, b is a pointer that is not allocated
"Remember that a class is a pointer to an object, so when you declare a
variable of some class, the compiler just allocates a pointer, not the
documentation : Reference guide : Classes
then why this code is functional ?!
This is my problem : I am using a pointer which not allocated (Am I
using a ghost memory ???!).
Please tell what's the problem (it is a bug ?).
More information about the fpc-pascal