[fpc-devel] new features and facilities
lazarus at kluug.net
Thu Oct 8 18:58:30 CEST 2015
On 08.10.2015 18:54, Sven Barth wrote:
> I had the idea to implement inline-if as well. I think the syntax I
> selected is derived from Oxygene, but it looks very Pascal and
> shouldn't break anything:
> left := if expr1 then expr2 else expr3;
> Thereby expr1 returns Boolean and expr2 determines the type of the
> whole inline-if, thus expr3 needs to be compatible to expr2.
Exactly. We discussed the same Oxygene-syntax in the Delphi community.
More information about the fpc-devel