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 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
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