Fwd: substr("foo", -1000)
authorM.J.T. Guy <mjtg@cus.cam.ac.uk>
Mon, 7 Jul 1997 12:37:51 +0000 (00:37 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Wed, 6 Aug 1997 12:00:00 +0000 (00:00 +1200)
commitd9fdd1afe4b88705294e21dc4e070c42d3d9a4d8
tree3eaa3bcf51aa087cba9019da6365f29812a6cf88
parent8e591e46b4c6543ed80895327199c4a628ce11b6
Fwd: substr("foo", -1000)

Subject: hmmm.

Isn't it weird that

substr("foo", -1000)

is silently converted to substr("foo", 0, 3) while

substr("foo", 1000)

always causes RETPUSHUNDEF and possibly a warning?  I'd say there's
too much code in pp.c:pp_substr.

Credited: Jarkko Hietaniemi <jhi@iki.fi>
Credited: Tim Bunce <Tim.Bunce@ig.co.uk>

p5p-msgid: 9707072304.AA01069@toad.ig.co.uk
private-msgid: 199707100655.JAA14924@alpha.hut.fi
pp.c