Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!winnie!zach.fit.edu!rcs91900 From: rcs91900@zach.fit.edu ( Charles Stockman /ADVISOR-Clutterham) Newsgroups: comp.sys.amiga.advocacy Subject: A change to the C++ standard Message-ID: <2264@winnie.fit.edu> Date: 5 Apr 91 19:23:19 GMT Sender: usenet@winnie.fit.edu Reply-To: rcs91900@zach.fit.edu ( Charles Stockman /ADVISOR-Clutterham) Organization: Florida Institute of Technology, ACS, Melbourne, FL Lines: 21 I am writing a C++ compiler and have one quick question In C/C++ Octal is defined as 012 (octal) --> 10 (decimal) Instead of starting octals off with a 0 I am planning to start them of with 0o 0o12 (octal) --> 10 (decimal) The reason is that I want to make it easier to build the scanner. By using 0o all I would have to do is check for 0o and surely know if it was an octal or not. In the Ansi standard either an octal or a floating digit may start with a 0 so it would take longer to decide if it was an octal or floating point and the code would not be as clean. 045 --> octal 0.3 --> floating point Well --> What do you think, should I change it or keep it the same ?