Forum > Russian

Почему не работает рекурсивный вызов вложенных функций без параметров?

<< < (2/2)

440bx:

--- Quote from: wanderus on December 03, 2019, 02:01:33 pm ---It’s a good idea to always use parentheses for the future like C/C++ function calls

--- End quote ---
Yes, it is.  Without the parentheses, in a assignment such as "a := somename;" it is not possible to know if "somename" is a function call or a variable just by reading that single statement.

I believe it would a very nice feature if FPC required the () for function calls (and procedures, for consistency's sake) depending on the setting of a compiler switch, e.g, {$EXPLICITCALLS ON}.


Navigation

[0] Message Index

[*] Previous page

Go to full version