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.

Regards
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to