ThisDirtyGetter

Like DirtyGetter, but instead of tracking if the field is dirty, it tracks if the this scope is dirty

template ThisDirtyGetter (
alias field
alias updateFunc
AccessModifier access = AccessModifier.Public
string name = field.stringof[1 .. $]
) {
enum ThisDirtyGetter;
}

Parameters

field

The field to generate the property for.

updateFunc

The function to call when the function is dirty.

access

The access modifier for the getter function.

name

The name of the property functions. Defaults to the field name minus the first character. Meant for fields that start with underscores.

Meta