Confirm

Ensures that the parameter value matches that of another parameter.

Alias This

toString

Members

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

confirmedParameter
enum confirmedParameter;
Undocumented in source.

Static functions

fromString
Confirm fromString(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

class WebService {
	void setPassword(ValidPassword password, Confirm!"password" password_confirmation)
	{
		// password is valid and guaranteed to equal password_confirmation
	}

	void setProfileInfo(string full_name, Nullable!ValidPassword password, Nullable!(Confirm!"password") password_confirmation)
	{
		// Password is valid and guaranteed to equal password_confirmation
		// It is allowed for both, password and password_confirmation
		// to be absent at the same time, but not for only one of them.
	}
}

Meta