The OpenD Programming Language

isFinalFunction

Detect whether S is a final function.

See also: __traits(isFinalFunction, S)

enum isFinalFunction ()

Examples

struct S { void bar() { } }
final class FC { void foo(); }
class C
{
    void bar() { }
    final void foo();
}
static assert(!isFinalFunction!(int));
static assert(!isFinalFunction!(S.bar));
static assert( isFinalFunction!(FC.foo));
static assert(!isFinalFunction!(C.bar));
static assert( isFinalFunction!(C.foo));

Meta