core.attribute

This module contains UDA's (User Defined Attributes) either used in the runtime or special UDA's recognized by compiler.

Public Imports

gcc.attributes
public import gcc.attributes;
Undocumented in source.
ldc.attributes
public import ldc.attributes;
Undocumented in source.

Members

Enums

mustuse
enum mustuse

Use this attribute to ensure that values of a struct or union type are not discarded.

optional
enum optional

Use this attribute to make an Objective-C interface method optional.

weak
enum weak

Use this attribute to specify that a global symbol should be emitted with weak linkage. This is primarily useful in defining library functions that can be overridden by user code, though it can also be used with shared and static variables too.

Structs

gnuAbiTag
struct gnuAbiTag

Use this attribute to declare an ABI tag on a C++ symbol.

selector
struct selector

Use this attribute to attach an Objective-C selector to a method.

Meta

Authors

Jacob Carlborg