[fpc-other] [fpc-pascal] FPC Graphics options?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed May 24 13:59:53 CEST 2017


On 2017-05-24 02:52, noreply at z505.com wrote:
> I'm not just talking about 8 space indentation vs 4 space or 2, I mean
> having to put code
> {
>     {
>          {
>             here
>
> Instead of fpc/oberon/golang:

But in Object Pascal you have...

  begin
     ...
     if <whatever> then
     begin
       ...
       if <whatever_else> then
       begin
         ...

Object Pascal blocks are longer to type - “begin” vs ”{” and “end” vs 
”}”. Also IF statements require the extra “then” keyword etc.

As for indentation. At least with real TAB character indentation, you 
can configure the width of a TAB as a user configurable parameter 
without affecting the source code. With space indentation you are stuck 
with whatever the original author did.

But lets not get into Space vs TAB vs Elastic Tabstops 
indentation/alignemnt arguments - that’s a whole new war I don’t want to 
tackle. :)



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-other mailing list