- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Implicit conversion and scalac
Dear All,how does the scala compiler handles implicit conversions?
If in the same method I access 3 methods of PimpMyInt on the same Int object, will the conversion be executed only once?
Best Regards
Edmondo
If in the same method I access 3 methods of PimpMyInt on the same Int object, will the conversion be executed only once?
Best Regards
Edmondo










Re: Implicit conversion and scalac
if your pimp'ed Int's operators return an Int, you will see three conversions.
On 28 Dec 2011, at 14:00, Edmondo Porcu wrote:
> Dear All,
> how does the scala compiler handles implicit conversions?
>
> If in the same method I access 3 methods of PimpMyInt on the same Int object, will the conversion be executed only once?
>
> Best Regards
>
> Edmondo