%::%
operator and are stored in the
package-internal global variable rgpSTypeEnvironment
.
sType
calculates the sType of the R expression x
.
sTypeq
quotes its argument x
before calling sType
.
SType inference of function definitions relies on a typed stack of formal arguments of
getSTypeFromFormalsStack
and setSTypeOnFormalsStack
get or set the sType
of a formal argument x
and a formalsStack
, respectively.
sType(x, typeEnvir = rgpSTypeEnvironment, returnNullOnFailure = FALSE)
configureSTypeInference(constantSTypeFunction = NA)
calculateSTypeRecursive(x, typeEnvir = rgpSTypeEnvironment, formalsStack = list(), returnNullOnFailure = FALSE)
sTypeq(x, typeEnvir = rgpSTypeEnvironment, returnNullOnFailure = FALSE)
getSTypeFromFormalsStack(x, formalsStack)
setSTypeOnFormalsStack(x, value, formalsStack)
hasStype(x)
x %::% value
NA
(the default), types of constants are named after the constant's R class.configureSTypeInference
is used to configure the type inference
engine for special needs.