Bill Allombert on Mon, 06 Aug 2018 00:05:03 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Parser inline function problem


On Sun, Aug 05, 2018 at 09:06:00PM +0000, Jacques Gélinas wrote:
> This is just an example of ecpressions being interpreted as functions,
> notably Inside print() where the wanted context is “character string”.
> Thus one must be very careful in inserting parenthesis in a print.
> Compare
> print("result="1+2)
> print("result="(1+2))
> 
> I am asking if there is a switch to have the parser interpret
> both statements as equivalents (as was the case in 2.4.1).

This would be awkward to do with the new interpretor.

This syntax is deprecated, we really advise to write
print("result=",1+2)
instead.

Cheers,
Bill