Join Slack
can i control how various classes are cast to one of mine with `as` and `is`? As in, I have made a c...
# getting-started
h
Hullaballoonatic
01/19/2019, 11:42 PM
can i control how various classes are cast to one of mine with
as
and
is
? As in, I have made a custom class, and is somewhere else a cast some class to it with
as
, it would follow code i wrote somewhere else to do so. Does that make sense?
a
Alan Evans
01/19/2019, 11:48 PM
No they are not overrideable operators. Unlike in say, C#
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by