Jump to content

Implicit type conversion: Difference between revisions

Scala contribution added.
(Scala contribution added.)
Line 954:
</pre>
 
=={{header|Scala}}==
See the section [https://docs.scala-lang.org/tour/implicit-conversions.html Tour of Scala about impplicit conversions.]
=={{header|Sidef}}==
Since version 3.00, all the number types (int, rat, float and complex) are unified in the ''Number'' class and all the needed conversions are done implicitly. Methods from other classes also make implicit conversions where possible.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.