Тема: if (a == true)
Показать сообщение отдельно
Старый 23.05.2012, 13:35   #11  
kornix is offline
kornix
MCP
MCBMSS
Злыдни
Ex AND Project
 
414 / 146 (5) +++++
Регистрация: 24.02.2009
Адрес: Санкт-Петербург
В PriceDisc.findPrice():
X++:
return ((findAll     && inventDimAllActivated.RecId     && this.findPriceAgreement(_priceGroupId, inventDimAllActivated.inventDimId))       ||
            (findItemDim && inventDimItemDimActivated.recId && this.findPriceAgreement(_priceGroupId, inventDimItemDimActivated.inventDimId))   ||
                                                               this.findPriceAgreement(_priceGroupId, InventDim::inventDimIdBlank())            ||
             this.findItemPrice());
На мой взгляд это еще хуже чем написал fed.
В return неудобно анализировать такой код.

В классе sysDatabaseList метод new:
X++:
...
while (1 == 1 && listOfNames)
{
}
...

Последний раз редактировалось kornix; 23.05.2012 в 15:11.
За это сообщение автора поблагодарили: macklakov (1).