logo      
Custom Search

Re: Automatic User-Defined Coercions

Date: December 30, 2006
From: Eric Willigers <ewilligers@xxxxxxxxx>

In-reply-to: <45965D04.7080206@xxxxxxx>
References: <4591F715.4030501@xxxxxxxxxxx> <8060223.post@xxxxxxxxxxxxxxx> <45922493.8010508@xxxxxxxxxxx> <45965D04.7080206@xxxxxxx>



Martin Odersky wrote:
> 
> Tony Morris wrote:
>> Martin,
>> Since the 'implicit' keyword is what defines an automatic coercion, does
>> this mean that the example on page 16 of An Introduction to Scala is
>> incorrect? (I said the last page in an earlier post, but this is a
>> mistake).
>>
>>   
> On page 16 I only see the example on currying, and I can't see an 
> implicit conversion in there. Why do you think it is incorrect?
> 
>  -- Martin
> 

Hi Martin,

See page 12 Automatic User-Defined Coercions
The Acrobat status bar shows "16 of 51" because of the document's 4 header
pages.

The current (2.3.1) compiler rejects the code - see
http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=280

Regards,
Eric.

-- 
View this message in context: 
http://www.nabble.com/Automatic-User-Defined-Coercions-tf2884666.html#a8097815
Sent from the Scala mailing list archive at Nabble.com.





Custom Search
home | non blog view