Conversion
class-conversion1 | = | expression ws ‘>> ’ [class-name] |
class-name | = | uppercase {alphanumeric} |
Learn about class conversion >>
in the Primer.
-
Explicit conversion to specified class. class-name optional if desired type inferable. Ex:
42>>String
calls conversion methodInteger@String()
i.e.42.String()
- whereas"hello">>String
generates no extra code and is equivalent to"hello"
. ↩