java.lang.Object
org.kink_lang.kink.internal.intrinsicsupport.NewValSupport
Funs for new_val error.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunValoddNumbefOfArgs(Vm vm, int argCount) Returns a nullary fun to raise odd-number-of-args error.static FunValReturns a nullary fun to raise sym-not-str error.static FunValtraitError(Vm vm, TraitError error, int arityDelta) Returns a nullary fun to raise an exception of an error of new_val.
-
Method Details
-
traitError
Returns a nullary fun to raise an exception of an error of new_val.- Parameters:
vm- the vm.error- the error of invocation of new_val.arityDelta- number to add to the arity stored in error.- Returns:
- a nullary fun to raise an exception.
-
symNotStr
Returns a nullary fun to raise sym-not-str error.- Parameters:
vm- the vm.index- the index of the error.val- the val at the index.- Returns:
- a nullary fun to raise an exception.
-
oddNumbefOfArgs
Returns a nullary fun to raise odd-number-of-args error.- Parameters:
vm- the vm.argCount- the count of args.- Returns:
- a nullary fun to raise an exception.
-