Code: Select all
class cls {
static prop {
set {
}
}
}
cls.prop := unset ; Missing a required parameter
Code: Select all
class cls {
static prop {
set {
}
}
}
cls.prop := unset ; Missing a required parameter
When you omit a required parameter, you get an error message. The value parameter is required.Within a function call, array literal or object literal, the keyword unset can be used to explicitly omit the parameter or value. An unset expression has one of the following effects:
•For a user-defined function, the parameter's default value is used.
Code: Select all
class cls {
static prop := 0
}
cls.prop := unset