In our previous episode, Sven Barth said: > > It was flagged as one of the constructs to be removed from the Delphi > > "Nextgen" compiler. But that was all "looking at". > > In Delphi they are to be considered deprecated for a long time already. But > I don't care about that as I'm a FPC developer where they aren't > deprecated...
I don't recommend them for any new code. > > > At least not in FPC. Also unlike records it > > > supports inheritance. > > > > Limited use without dynamic instantiation. > > I wouldn't say that. Even without dynamic instantiation it would at least > allow for reduced amount of code for structures that share some fields and > thus maybe logic... As I said, that is a limited use :_) But IMHO that's more trying to find uses then anything real. In practice the record functionality superceded them. In recent years I only used them for things like static iterator objects. And that code had origins before D2006 even, so maybe nowadays I would do that with records. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
