genOpEquals

Mixin helper to generate proper opEquals declaration. It differs between D1 and D2 runtime and not matching exact signature will result in the default version, defined by the compiler, to be silently called instead.

istring
genOpEquals
(
istring func_body
)

Parameters

func_body istring

code of opEquals as string. Must refer to argument as rhs

Return Value

Type: istring

full declaration/definition of opEquals that matches current compiler

Meta