On Thu, Feb 05, 2009 at 07:13:18PM +0100, Vincent Trouilliez wrote:
> > ISO C99, section 6.4.4.4, p3:
> > the question-mark ?, [..] is representable according to the
> > following table of escape sequences: question mark? \?
> 
> Interesting. I wonder why the standard deeemd it necessary to provide
> an escape sequence for the question mark ?
> I do happen to have question marks in my strings, but didn't know
> about the escape sequence so didn't use it, yet the compiler didn't
> complain, and simply put the question mark ASCII code in the string,
> as I expected.
> 
> I understand they phrased it to mean a "possibility", not an
> obligation, but why provide it if they didn't think there were at
> least one use case where it would be mandatory ?

Haven't gone back to the referenced text but perhaps the ? was intended
as wildcard character indicating that any character can be escaped as
itself when in doubt?

-- 
David Kelly N4HHE, dke...@hiwaay.net
========================================================================
Whom computers would destroy, they must first drive mad.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to