[fpc-pascal] for..in loops?

Marc Santhoff M.Santhoff at t-online.de
Sun Nov 20 12:51:09 CET 2005


Am Sonntag, den 20.11.2005, 21:54 +1100 schrieb Moz:
> Micha Nelissen said:
> > FPC will never support this, AFAIK. It doesn't really add anything new, it
> > just shortens the code somewhat. Only in toy examples is it nice,
> 
> Could you expand this answer to cover the reasons why people might use
> Pascal rather than assembly language? Your argument seems to advocate
> using the lowest level language available...

You're kidding, aren't you?

> I'm a big fan of compact code and language features that promote it.
> Give me "StringList.SaveToFile()" any day over the laborious code
> that starts "var F:TextFile;"

I agree with that principally, but stringlists *are* really slow on
thousands of lines (been there, done that).

But in the meantime I'm preferring fpc getting ported to more platforms
over having Microsoft's syntactic sugar implemented. This sucks of
development power and is only of interest for a few people. Having fpc
on Mac or ARM would never happen if anyone were running after Borland or
Microsoft.

If you really need some new statement types you can

- make patches for the compiler
- or use a preprocessor
- or use Smalltalk/Java/Eiffel/Python/Ruby (if you like Pascal better
then ASM)

If you'd ask me: My wish would be to see fpc compiling programmes for
the BlackFin-CPUs and for the ECOS2 operating system, can this be
implemented, please? ;)

Marc





More information about the fpc-pascal mailing list