Should pure nothrow ---> @pure @nothrow ?

bearophile bearophileHUGS at lycos.com
Fri Nov 27 01:50:19 PST 2009


Walter Bright:
> Naked is not an externally visible attribute of a function, signature or 
>   type, it only concerns the internals. Therefore, it shouldn't be an 
> attribute.

On the other hand I agree with them that currently "naked" is not in the best place. So let's try another alternative:

void foo() {
  @naked asm {
    ...
  }
}

(To do that attributes have to be usable inside functions too).

Bye,
bearophile



More information about the Digitalmars-d mailing list