Some compiler checks are implemented for D:
run
sizeof
has_header
alignment
Example:
ptr_size = meson.get_compiler('d').sizeof('void*')