Quote Originally Posted by JSoftware
Class vars are supported in fpc trunk, I don't know how long back though. I guess it'll be supported back to 2.4.0
Interesting. I can't quite think of a reason I'd like to make a variable for one object only vs allowing all objects to access it, but I suppose it could help with organization. In any case, I guess unless you want to to download the trunk, having a private var in the unit would be the way to go. (Or you could test it yourself with current pub releases of FPC, of which I'm too lazy to look up the syntax to test on)