1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-01-08 09:14:55 +02:00
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/form-module-pragma.md

857 B

Use form module compilation pragma

Compilation directives (pragma)

&AtClient
&AtServer
&AtServerNoContext

should be applied only in the code of managed form modules and in the code of command modules. In other modules, it is recommended to use instructions to the preprocessor.

In server or client common modules, the execution context is obvious, so there is no sense in compilation directives. In Client-Server common modules the use of compilation directives makes it difficult to understand which procedures (functions) are available in the end.

Noncompliant Code Example

Compliant Solution

See