[Lazarus] Feature request: Single-file mode

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Sep 15 09:55:40 CEST 2012


On Sat, 15 Sep 2012 16:59:27 +1100
Alexander Klenin <klenin at gmail.com> wrote:

> On Sat, Sep 15, 2012 at 1:08 AM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
> >
> > No lpi, so no compiler options and no packages.
> 
> Basically, yes, although compiler options could be saved in the source
> as directive.
> One of the goals is that "Build single file" from Lazarus to be
> exactly equivalent
> to "fpc file.pp" from the command line.
> 
> > There is already a single file feature under Run / Configure Build+Run file.
> That's very interesting, I did not know it.
> 
> > At the moment Run simply executes it. It does not use the debugger.
> That's definitely bad.

Yes, maybe that can be extended.

 
> > The compiler options and run parameters are saved as IDE directives in the
> > source.
> That's definitely good :)
> 
> > You can have an arbirary number of such single file programs and they are
> > compiled and run with the shortcuts.
> What do you mean "with shortcuts"?

When the sfp is active in the source editor and you press F9 it
runs the sfp.

 
> > Of course there is room for improvements. For example the project has higher
> > precedence. For students a special project might be needed that favors single
> > file programs.
> Yes, this is what I was talking about, with additional twist that the
> students need that
> not necessarily because they are unprepared (which cade may be solved,
> additionally by your EducationLaz package), but because some kinds of
> assignments,
> mostly algorithm-oriented, are better suited by a proposed single-file mode.


Mattias
 




More information about the Lazarus mailing list