Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-12 Thread Sven Barth
Am 12.01.2011 08:00, schrieb Paul Ishenin: 12.01.2011 13:54, kingbiz...@gmail.com пишет: Well guys, thanks for replying, the generic method is a very nice method, I personally didn't know that the FPC support it, very thank you for that! FPC does not support it at the moment. I hope it will

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-12 Thread Paul Ishenin
12.01.2011 15:20, Sven Barth wrote: Btw: Do you plan to implement constraints as well? I thought to implement all what delphi has but I don't know whether I will be able to. Best regards, Paul Ishenin ___ fpc-devel maillist -

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-12 Thread Marc Weustink
kingbiz...@gmail.com wrote: I come here humbly to ask for a new implementation, the IIF ?:, the IIF is a shortcut that make the coding a little faster, it works by returning a true or a false part of a condition, a more detailed information can be found there: http://en.wikipedia.org/wiki/%3F:

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-12 Thread Alexander Klenin
On Thu, Jan 13, 2011 at 00:51, Marc Weustink marc.weust...@cuperus.nl wrote: Note that there is a tiny little difference between those two. the ?: operator evaluates either the TruePart or FalsePart while IfThen will evaluate both parts first. Exactly. This is why for me IfThen is much less

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-12 Thread Hans-Peter Diettrich
kingbiz...@gmail.com schrieb: I come here humbly to ask for a new implementation, the IIF ?:, the IIF is a shortcut that make the coding a little faster, it works by returning a true or a false part of a condition, a more detailed information can be found there:

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread Paul Ishenin
12.01.2011 13:28, kingbiz...@gmail.com wrote: The problem: we have to do *one function for every type*, on the C and PHP method is is *globally* If we want one for Integer we must declare one for it, if we want one for X we need to declare it... I want to know from you, what you would think

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread Marco van de Voort
In our previous episode, Paul Ishenin said: But even delphi does not have it for regular procedures/functions. I suppose because regular procedures/functions does not support overloading. ??? I use it all the time? Requires overload directive iirc, but works.

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread Paul Ishenin
12.01.2011 13:47, Marco van de Voort пишет: In our previous episode, Paul Ishenin said: But even delphi does not have it for regular procedures/functions. I suppose because regular procedures/functions does not support overloading. ??? I use it all the time? Requires overload directive iirc,

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread kingbiz...@gmail.com
Em 12/01/2011 04:47, Marco van de Voort escreveu: In our previous episode, Paul Ishenin said: But even delphi does not have it for regular procedures/functions. I suppose because regular procedures/functions does not support overloading. ??? I use it all the time? Requires overload directive

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread Paul Ishenin
12.01.2011 13:54, kingbiz...@gmail.com пишет: Well guys, thanks for replying, the generic method is a very nice method, I personally didn't know that the FPC support it, very thank you for that! FPC does not support it at the moment. I hope it will in a month. Best regards, Paul Ishenin

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread kingbiz...@gmail.com
Em 12/01/2011 05:00, Paul Ishenin escreveu: 12.01.2011 13:54, kingbiz...@gmail.com пишет: Well guys, thanks for replying, the generic method is a very nice method, I personally didn't know that the FPC support it, very thank you for that! FPC does not support it at the moment. I hope it will