[fpc-pascal] A better way?
Sven Barth
pascaldragon at googlemail.com
Thu Apr 14 11:14:06 CEST 2016
Am 14.04.2016 10:45 schrieb "Ryan Joseph" <ryan at thealchemistguild.com>:
>
>
> > On Apr 14, 2016, at 3:02 PM, Tony Whyman <tony.whyman at mccallumwhyman.com>
wrote:
> >
> > Reading through your post, I hope that you are aware that most circular
dependencies can be avoided by referencing other units from the "uses"
clause in the "implementation" section and keeping the "uses" clauses in
"interfaces" down to those references strictly necessary for the unit's
interface.
>
> I had no idea you could declare uses in the implementation! That could
probably fix 90% of the problems I’m having which I’ve used abstract
classes, dynamic method invocation and more recently interfaces to
workaround. Don’t tell me this has been around for 20 years now I just
never knew about it. ;) I should have asked sooner that’s for sure.
When was Delphi 3 released? Before '96? In that case it would indeed be
more than 20 years ;)
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160414/6b7e4306/attachment.html>
More information about the fpc-pascal
mailing list