Interesting. I didn't know that behavior changed. Since we try to cover v2.8, we need to amend that paragraph in the book!
On Thu, Jul 9, 2009 at 6:03 AM, Eric Willigers
<ewilligers@...> wrote:
Welcome to Scala version 2.7.5.final
scala> val a = '1
<console>:1: error: missing terminating quote
val a = '1
^
Welcome to Scala version 2.8.0.r18236-b20090708020214
scala> val a = '1
a: Symbol = '1
Is the change in behaviour intended?
I'm enjoying Wampler and Payne's upcoming book, it is making me check things I thought I understood.
http://programming-scala.labs.oreilly.com/ch02.html#SymbolLiterals
--
Dean Wampler
coauthor of "Programming Scala" (O'Reilly)
-
http://programmingscala.comtwitter: @deanwampler, @chicagoscala
Chicago-Area Scala Enthusiasts (CASE):
-
http://groups.google.com/group/chicagoscala-
http://www.meetup.com/chicagoscala/ (Meetings)
http://www.objectmentor.comhttp://www.polyglotprogramming.comhttp://www.aspectprogramming.com
http://aquarium.rubyforge.orghttp://www.contract4j.org