Re: [Rd] Possible bug in R parser

2011-01-24 Thread Prof Brian Ripley
On Mon, 24 Jan 2011, Olaf Mersmann wrote: Dear R developers, A recent typo led me to discover, that R is happy to accept > 20x2 [1] 20 as input. This appears to be related to the parsing of hexadecimal constants, since there must be a zero before the 'x' (i.e. 2x2 or 02x02 gives the expecte

[Rd] Possible bug in R parser

2011-01-24 Thread Olaf Mersmann
Dear R developers, A recent typo led me to discover, that R is happy to accept > 20x2 [1] 20 as input. This appears to be related to the parsing of hexadecimal constants, since there must be a zero before the 'x' (i.e. 2x2 or 02x02 gives the expected error). All this is under R 2.12.1 on bot