sdlValue

Forces a value to be serialized as an SDL value.

This can be applied to plain values in aggregate members and will cause the vaule to be seriailzed as a value of the parent tag instead of as a child tag.

@property
SDLValueAttribute
sdlValue
()

Examples

struct S {
	int foo;
	@sdlValue int bar;
}

struct T {
	S s;
}

assert(
	serializeSDLang(T(S(1, 2))).toSDLDocument() ==
	"s 2 {\n" ~
	"\tfoo 1\n" ~
	"}\n"
);

Meta