Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.astenums

Defines enums common to dmd and dmd as parse library.

Source astenums.d

enum Edition: ubyte;
D Language version
legacy
Before the introduction of editions
v2024
Experimental first new edition
latest
Newest edition that this compiler knows of
pure nothrow @nogc @safe bool isRefReturnScope(const ulong stc);
Determine if it's the ambigous case of where return attaches to.
Parameters:
ulong stc STC flags
Returns:
true if (ref | out) and scope and return
enum VarArg: ubyte;
none
fixed number of arguments
variadic
(T t, ...) can be C-style (core.stdc.stdarg) or D-style (core.vararg)
typesafe
KRvariadic
K+R C style variadics (no function prototype)
enum STMT: ubyte;
Identify Statement types with this enum rather than virtual functions
enum InitKind: ubyte;
Discriminant for which kind of initializer
enum LINK: ubyte;
A linkage attribute as defined by extern(XXX)
enum CPPMANGLE: ubyte;
Whether to mangle an external aggregate as a struct or class, as set by extern(C++, struct)
def
default
asStruct
extern(C++, struct)
asClass
extern(C++, class)
enum MATCH: int;
Function match levels
nomatch
no match
convert
match with conversions
constant
match with conversion to const
exact
exact match
enum PINLINE: ubyte;
Inline setting as defined by pragma(inline, XXX)
default_
as specified on the command line
never
never inline
always
always inline
enum FileType: ubyte;
Source file type
d
normal D source file
dhdr
D header file (.di)
ddoc
Ddoc documentation file (.dd)
c
C source file
enum CHECKENABLE: ubyte;
In which context checks for assertions, contracts, bounds checks etc. are enabled
_default
initial value
off
never do checking
on
always do checking
safeonly
do checking only in @safe functions
enum CHECKACTION: ubyte;
What should happend when an assertion fails
D
call D assert on failure
C
call C assert on failure
halt
cause program halt on failure
context
call D assert with the error context on failure
struct DArray(T);
Use to return D arrays from C++ functions