Pragmatic directives: Difference between revisions
Content deleted Content added
Added Erlang |
|||
Line 84: | Line 84: | ||
=={{header|D}}== |
=={{header|D}}== |
||
The -d compiler switch allows deprecated D features in a program. It allows some deprecated features of C language, and user code wrapped inside deprecated{}. |
The -d compiler switch allows deprecated D features in a program. It allows some deprecated features of C language, and user code wrapped inside deprecated{}. |
||
=={{header|Erlang}}== |
|||
Erlang pragmas are called module attributes. The compile attribute, ex: |
|||
<pre> |
|||
-compile( [compressed, {inline,[pi/0]}] ). |
|||
</pre> |
|||
will add the compiler option 'compressed' when the module is compiled and inline the function pi/0. |
|||
The file module attribute look like |
|||
<pre> |
|||
-file( "kalle", 98 ). |
|||
</pre> |
|||
and will change the ?FILE macro from the file name to "kalle" and the ?LINE macro from the line number to 98. |
|||
More module attributes at [http://www.erlang.org/doc/reference_manual/modules.html]. |
|||
=={{header|Go}}== |
=={{header|Go}}== |