Delphi: Locking Brackets Optional?

I noticed quite a few times that syntax errors such as

Exit(push(ASBDD(asPixmap, _ScriptSavePixmap(Script, PMRGBAdjust(_ScriptGetPixmap(Script, Args[0].Index), adjparams))));

really compiles. Note that one closing bracket is missing ). (Of course, it also compiles if I add this missing bracket!)

Is this a documented feature?

+3
source share
1 answer

Additional Information: The statement in question is the last statement in the code block. Inserting any instruction after this statement will cause the compiler to report the correct error ")".

, ")", . , . , . .

+5

Source: https://habr.com/ru/post/1757868/


All Articles