On Tue, Jan 8, 2013 at 10:44 AM, Krzysztof <dib...@wp.pl> wrote: > Hi, > > I like when Free Pascal trying to implement best practices from other > languages. That was with increment variable using assign operator: i += 1. > Anyway, few days ago I analyzed C++ code and I liked one syntax: > > if ( ( i = GetSomeValue ) >= 10 ) { > // variable "i" already has value returned by GetSomeValue > } > > I wonder if FPC has equivalent for this.
No, and thanks Wirth for that, and for FPC/Delphi devs for not adding it up. It's one of the worst possible features ever existed in programming languages, and the cause for many bugs > > Regards > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal