[Jprogramming] Problem working with data loaded from a file
PackRat
packrat at anet.com
Fri Mar 30 04:29:55 HKT 2012
I wrote:
> > That second problem was that I forgot that one cannot use "=" as a
> > Boolean comparison verb for literals (except for single characters).
and Devon McCormick responded:
> This isn't true.
I'm sorry, I used incorrect phraseology. My intent was NOT to state
that literals cannot be compared in a Boolean manner (i.e., a series of
Boolean values can be generated for the various comparisons). Of
course, they can. Rather, what I was thinking, but didn't clearly
state, is that I wanted a SINGLE Boolean value (true or false) for the
result of the entire comparison, regardless of the lengths of the two
literals. (In other languages, I'd be comparing strings for equality
or identity--just a simple true/false answer to act upon.) Hope this
clarifies!
Harvey
More information about the Programming
mailing list