D's treatment of values versus side-effect free nullary functions

bearophile bearophileHUGS at lycos.com
Sat Jul 24 06:54:30 PDT 2010


div0:
> No they aren't.
> command line options apply to the entire module(s) not to specific 
> invocations of a function.

In both GNU C and CLisp you can add annotations to change the optimization level on a function by function basis:
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007boptimize_007d-function-attribute-2419

Bye,
bearophile


More information about the Digitalmars-d mailing list