[Chicago-talk] Java question

Greg Fast gdf at speakeasy.net
Sun Oct 16 08:30:47 PDT 2005


On Sat, Oct 15, 2005 at 04:49:12PM -0500, Jay Strauss wrote:
> > what does:
> > 
> > order.m_ignoreRth = readInt() == 1;
> > 
> > do?
> Nevermind it's a boolean

`==` binds tighter than `=`, so it wouldn't compile if m_ignoreRth
wasn't boolean.  But this is bad style, parens should be used (most
people, myself included, don't remember operator precedence without
looking it up...)

-- 
Greg Fast
gdf at speakeasy.net
http://cken.chi.groogroo.com/


More information about the Chicago-talk mailing list