[fpc-pascal] New feature: IfThen() intrinsic
silvioprog
silvioprog at gmail.com
Sun Jan 31 16:30:48 CET 2016
On Sun, Jan 31, 2016 at 12:20 PM, Sven Barth <pascaldragon at googlemail.com>
wrote:
> On 31.01.2016 16:09, silvioprog wrote:
> > Wooow! I did a request about it many years ago, however it was rejected
> > because the limitation in the generic feature at that time.
>
> This implementation has nothing to do with generics. It's a compiler
> magic function, just like Writeln() and thus it can bend the usual rules ;)
Awesome.
> So, I posted a bug related to it yesterday:
> >
> > http://bugs.freepascal.org/view.php?id=29546
I have a test-case in a draft project that worked fine some days ago, so I
think that this bug was introduced recently. o_O
I've seen your bug this night and that was the cause for finally
> implementing this.
2^64 thanks! :-)
> Can I use it after this new feature? (I'm upgrading my FPC sources now
> :-) )
>
> I've not yet looked at what the problem regarding your code is. However
> you can simply remove your TUtils.Iif() and use IfThen() instead.
YES! o/ .. \o .. \o/
I'm going to do it now ... :-D
> Buddy, thanks a lot for that feature, it is very useful! o/
>
> That's what I have hoped for. :)
^^
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160131/4539cbd9/attachment.html>
More information about the fpc-pascal
mailing list