Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OctalEscape

 
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