[fpc-devel] "Friend" classes?
peter green
plugwash at bircd.org
Fri Mar 25 14:52:27 CET 2005
> > The only *disadvantage* of units are the current Pascal compilers, which
> > cannot handle circular unit references :-(
>
> No, it's an advantage: it makes the code and design clearer, plus
> it increases the speed of compilation a *lot*.
>
note: you can have cuircular implementation references just not cuircular
interface references.
so sometimes some extra typecasts will be needed if classes need to have
referenes to each other but its not usually any worse than that.
converting between OOP languages will always be hard because they all use
different object models and most code is designed around the object model of
the language in use.
More information about the fpc-devel
mailing list