[fpc-pascal] getopts unit vs CustApp parameter handling

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu May 5 11:49:36 CEST 2016


On 2016-05-04 10:24, Michael Van Canneyt wrote:
> It would be, but you had better update your interface, various things
> have been added.

I’ve updated the Interface last night to match that of FPC Trunk.

https://github.com/graemeg/fpGUI/blob/develop/src/corelib/fpg_cmdlineparams.pas


I was about to refactor the “CustApp” unit when I realised that if I
change the TCustomApplication class to use the Interface Delegation (and
very nice code reuse), then backwards compatibility with any existing
TCustomApplication descendants will be broken. :-/ Probably not an
option then, which is unfortunate. Unless you know of a different way it
can be done?

Maybe introduce a new CustApp2 unit (terrible name I know), and mark the
existing one as deprecated?

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list