[fpc-pascal] Best method for code reuse?

Graeme Geldenhuys graemeg.lists at gmail.com
Sat Apr 4 22:53:09 CEST 2009


On Sat, Apr 4, 2009 at 7:12 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
>
> A lazarus package helps to
> - write documentation for it,
> - handle translations,
> - simplifying integrating it into programs with different
> compiler settings

Plus
 - Allows for much easier code reuse
 - applies compiler paths and units paths for you
   eg: Create a new CLI project add the MyCoolUnits.lpk as a requirement package
    and Lazarus IDE does the rest. All unit paths are setup automatically.
   PS:  Remember to specify in the Package Options that the
MyCoolUnits.lpk is a runtime only package. That way it doesn't rely on
any Lazarus units or LCL.

>> thinking of trying Lazarus later. Would I have any advantages on
>> doing my CLI work from Lazarus?
>
> Lazarus has a lot of tools for searching and writing code faster.

+1
I write a lot of CLI tools or non-LCL applications. Lazarus as
programmer IDE (editor) is fabulous.

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list