On 05/02/16 07:03, Sven Barth wrote:
> Am 04.02.2016 23:43 schrieb "Martin" <f...@mfriebe.de 
> <mailto:f...@mfriebe.de>>:
>>
>> On 04/02/2016 22:13, Michael Van Canneyt wrote:
>>>
>>>
>>> On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote:
>>>>
>>>>
>>>> You mean like literally using "?" and ":" ?
>>>
>>>
>>> Yes. As used in C-like languages.
>>
>>
>> There was also voices for a more verbose solution.
>>
>> But introducing 2 new operators based on words (a-z, not 16 bit) means 2 new 
>> keywords and causes conflicts.
>> Except if "then" and "else" are used (but without "if")
>> x := 1 < 3 then 5 else 4;
> 
> No. Think about the ambiguities that arise if you use this inside the 
> condition of an if-statement.
> 
What if it required use of braces:

x := (expression then truevalue else falsevalue); 

?
> Regards,
> Sven
> 

el es


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to