Re: [PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluateincorrectly

2001-08-04 Thread Adam Maccabee Trachtenberg
It's not a bug, but a feature. :) PHP has the inverse associativity of ?: compared to C (and every other language). This was originally a mistake, but now it won't be changed, due to historical reasons. See some messages I had on php-dev back around the first week of January, 2001 on this

Re: [PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluateincorrectly

2001-08-04 Thread Adam Maccabee Trachtenberg
On Sun, 5 Aug 2001, Jeroen van Wolffelaar wrote: On http://marc.theaimsgroup.com/?w=4r=1s=trachtenbergq=a , I could only find messages about break/continue in switch statements... The subject line is misleading. We shifted into talking about ?:. See me at the bottom of: