Previous: Precedence, Up: Expressions [Contents][Index]
When two operands on each side of a binary expression have
different type, mailfromd
evaluator coerces them to a
common type. This is known as implicit type casting. The rules
for implicit type casting are:
The construct for explicit type cast is:
type(expr)
where type is the name of the type to coerce expr to. For example:
string(2 + 4*8) ⇒ "34"
A special case of type casting is cast to void
. It is used to
ignore return value of a function call between the braces, e.g.:
void(dlcall(libh, "extlog", "s", text))