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

Sven Barth pascaldragon at googlemail.com
Mon Feb 1 19:23:29 CET 2016


Am 01.02.2016 17:00 schrieb "silvioprog" <silvioprog at gmail.com>:
>
> On Mon, Feb 1, 2016 at 12:48 PM, leledumbo <leledumbo_cool at yahoo.co.id>
wrote:
>>
>> > Looks good and clever. Logical choice. How often you have variables
with &
>> prefix?
>>
>> Only when I use ORM with automapping of properties to fields (for fields
>> whose name clash with reserved words such as the most common 'type'). I
>> won't use it in other cases.
>>
>> Agree with Michael, no & please.
>
>
> I agree with Michael too. No & please, it can conflict with ported codes
from C.
>

While I agree with Michael I don't agree with you. We already have "&"
which is used for two purposes:
- binary numbers
- escaping keywords
The &if would merely be an application of the latter which already works
since AFAIK 2.4.0.
Also you can't have "&if" in C-code as C does not allow you to escape
identifiers. And an address of an if statement is also not possible.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/d7bd8b57/attachment.html>


More information about the fpc-pascal mailing list