object's private fields accessable from otside the object
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
If you have a declaration like this:
type
X = object
...
private
...
v : SomeType
...
end;
then field v is accessable from anywhere in the program, as if it were declared public or as a global variable.
I notified this bug when compiling a program with FPC 1.0.4
In my opinion the above situation should lead to an error message from the compiler.
Additional information:
Reporter: Rene Ladan
EMail: r dot c dot ladan at student dot tue dot nl
Mantis conversion info:
- Mantis ID: 3677
- OS: Linux
- Version: 1.0.4
- Fixed in version: N/A