This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OctalEscape  RSS feed

 
Rupak Khurana
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are octal escapes ? Is '\177' an octal escape ? How is it a valid character literal ?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest reading JLS 3 sections 3.10.4 and 3.10.6. Using the syntax definitions found there you can verify whether '\177' is valid or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!