Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Maciej Izak
2016-02-01 10:59 GMT+01:00 Michael Schnell : > On 02/01/2016 09:35 AM, David Butler wrote: > >> >> >> Maybe call it "inlineif" or "iif", e..g >> >> x := iif (a < 3, 1, 2) >> >> It's iif in Oxygen. So why not keep that name ? Same here. I see no reason to differ from it. Introducing new incompati

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Anthony Walter
Sven, I missed this post when you made it a two days ago. If someone hasn't already asked, does your implementation support short circuit evaluation? For example: BasketCount := IfThen(ShoppingList <> nil, ShoppingList.Count, 0); Where evaluating ShoppingList.Count will cause an exception if Sh

<    1   2