[fpc-pascal] Food for thought - language string improvement

Santiago A. svaa at ciberpiula.net
Mon Jul 10 11:01:53 CEST 2017


El 10/07/2017 a las 1:32, Graeme Geldenhuys escribió:
> Hi,
>
> I've give a short reply here, in case others deem this off-topic. I
> always seem to end up in hot water about such stuff here. I can send
> you more details in private if need be.
>
> On 2017-07-09 22:16, Michael Van Canneyt wrote:
>> Would it be possible to give examples ?
>> Maybe there are things that can be done in Lazarus, and Pascal ?
>
> Some IDE examples I have already raised in recent weeks in the Lazarus
> forum. The Java IDE's are *way* more clever about what code you wrote
> and makes very intelligent suggestions when it discovers errors, or
> possible improvements (eg: because you are using a newer Java version
> that might have an improved solution). In Eclipse, Ctrl+1 will list
> the options, give you a tooltip hint of how the changed code will look
> (before any changes are made). Make your pick and press enter. Those
> could be fixing errors, improved language features, pull in missing
> import lines, implement getters and setters, define missing classes,
> field variables or local variables etc. The list of what is on offer
> is massive.
>
> Purely on the language side of things.... I love the fact that there
> is no *.h or an "interface section" in my code - why must C/C++ and
> Object Pascal duplicate that information. If I want to see a purely
> "interface" view of my code, the IDE doesn't that as standard in the
> unit Outline window.
>
> As I said, just a short list here, but I can list many more if you
> want - both IDE features and language features.
>
> Regards,
>   Graeme
>
My main complain to Freepascal is debugger.

Being unable to debug any field of an object is unacceptable in a 
modern professional environment (hint, properties with getter, let alone
with strings). It's ridiculous to use writeln() or creating dummy
variables to debug as if I were in 1980. You can add to the IDE as many
bells and whistles as you want, but without a serious debugger, no way.

-- 
Saludos

Santiago A.




More information about the fpc-pascal mailing list