S
supercalifragilisticexpialadiamaticonormalizeringe
Or a <[email protected]> madness of some stripe.
WTF???
I didn't post this.
Who's forging my from and why?
Or a <[email protected]> madness of some stripe.
On 7/6/2011 4:52 PM,
supercalifragilisticexpialadiamaticonormalizeringelimatisticantations wrote:
...The foreach syntax can also be used with arrays, including arrays of
unboxed primitives, even though using reflection on an array (e.g. (new
Object[3]).getClass().getInterfaces() only shows it implementing
Cloneable and Serializable, not Iterable.
The JLS says that the enhanced for statement expression "must either
have type Iterable or else it must be of an array type (§10.1), or a
compile-time error occurs."
[http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.14.2]
Patricia
// iterate over all elements of s -- this "foreach" syntax
// is possible AFAIK with all classes that implement Collection
for (Foo foo : s) {
// note use of C-like printf
System.out.printf("foo with value %d, hashcode %d\n",
foo.n, foo.hashCode());
}
WTF???
I didn't post this.
Who's forging my from and why?
supercali said:The foreach syntax can also be used with arrays, including arrays of
unboxed primitives, even though using reflection on an array (e.g. (new
Object[3]).getClass().getInterfaces() only shows it implementing
Cloneable and Serializable, not Iterable.
The JLS says that the enhanced for statement expression "must either
have type Iterable or else it must be of an array type (§10.1), or a
compile-time error occurs."
[http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.14.2]
Patricia
YABT
if I were you, Paul, I would write in a complaint!
make it simple. small short words, there is a clue.
Like "I am a fuckhead who likes to **** with newsgroups. This other
fuckhead is fucking up my fucking with newsgroups. Ex-fucking-scuse me!
Can you help me to help the fuckhead fuckoff?"
make sure you sign it "Paul". Paolo knows you are coming[pun]
Like "I am a fuckhead who likes to **** with newsgroups. This other
fuckhead is fucking up my fucking with newsgroups. Ex-fucking-scuse me!
Can you help me to help the fuckhead fuckoff?"
make sure you sign it "Paul". Paolo knows you are coming[pun]
What the hell are you babbling on about now?
Go fetch it yourself you lazy fat ****!supercali said:On 7/6/2011 4:52 PM,
supercali ... wrote:
The foreach syntax can also be used with arrays, including arrays of
unboxed primitives, even though using reflection on an array (e.g. (new
Object[3]).getClass().getInterfaces() only shows it implementing
Cloneable and Serializable, not Iterable.
The JLS says that the enhanced for statement expression "must either
have type Iterable or else it must be of an array type (§10.1), or a
compile-time error occurs."
[http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.14.2]
Patricia
YABT
WTF? I didn't write that. And what does "YABT" even mean?
oH did you not?Why are posts appearing in this newsgroup with my name on them that I
didn't write???
1> Newsgroups: comp.os.os2.advocacy
1> Possible, sure. Although the M.O. of "super" doesn't really match
1> Paul's much, imo. Maybe we've trolled even if it's not Paul.
The M.O. of "Stefan Robacki" matches those of Tim Harrison, Sulfide
Eater, Chad Carmichael, Extravagan, Meerkats, Purpleswandir, Heike
Svensson, Derek Yancey, Zxcvbnm, Greg Kelly, Willy Wonka, Nougat
Surprise, Mister Whiskers, John Harbl, Alice, Cthun, Boojum, Katie
Gerrolds, Julie Faramis, Henry Harrison, Nancy 4, and
supercalifragilisticexpialadiamaticonormalizeringelimatisticantations,
markspace.
Why not just spot the NNTP-Posting-Host, markspace?
On 06/07/2011 8:54 PM, Paul Derbyshire - Pembroke[ontario.ca] wrote
Go fetch it yourself you lazy fat ****!
oH did you not?
bummer that!
Like "I am a fuckhead who likes to **** with newsgroups. This other
fuckhead is fucking up my fucking with newsgroups. Ex-fucking-scuse me!
Can you help me to help the fuckhead fuckoff?"
make sure you sign it "Paul". Paolo knows you are coming[pun]
What the hell are you babbling on about now?
You really are attached to this st00pid fucking name!
Complain to Paolo, Paul.
He wants you to be there for him.
SNAAAAAAAAAAAAARF
You make very very sure they bringLike "I am a fuckhead who likes to **** with newsgroups. This other
fuckhead is fucking up my fucking with newsgroups. Ex-fucking-scuse me!
Can you help me to help the fuckhead fuckoff?"
make sure you sign it "Paul". Paolo knows you are coming[pun]
What the hell are you babbling on about now?
You really are attached to this st00pid fucking name!
If you think it's so stupid, why do you love it so much you insist on
using it instead of inventing your own handle to use here, huh?
Complain to Paolo, Paul.
Who the hell are Paolo and Paul?
He wants you to be there for him.
Who are you talking about. It sounds like you think I'm gay. Sorry, so
totally not. If THAT's what you're looking for, you're barking up the
wrong tree.
SNAAAAAAAAAAAAARF
What is that? You sound like a dog. And act like a dog that wants to
keep following someone around and humping their leg.
In which case:
Beat it, mutt, before I call the pound.
supercalifxxxxPaul Derbyshire - Pembroke Ontario CA
You make very very sure they bring
you a very small dog, Paul These balls
of yours are not so huge a feed for
a dachshund!
You are a fucked duck, Paul.
On 6 Jul 2011 16:59:57 GMT, (e-mail address removed)
[snip]
Gene seems to be saying elsethread that in his real code he might
be initializing from something that isn't in order. But assuming he
Yup.
could put it in order before initializing the set, then yes, it seems
Why bother? SortedSet does the work for me.
like a LinkedHashSet would do what he wants.
[snip]
On 7/6/2011 4:52 PM,
supercalifragilisticexpialadiamaticonormalizeringelimatisticantations wrote:
...The foreach syntax can also be used with arrays, including arrays of
unboxed primitives, even though using reflection on an array (e.g. (new
Object[3]).getClass().getInterfaces() only shows it implementing
Cloneable and Serializable, not Iterable.
The JLS says that the enhanced for statement expression "must either
have type Iterable or else it must be of an array type (§10.1), or a
compile-time error occurs."
[http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.14.2]
On 6 Jul 2011 16:59:57 GMT, (e-mail address removed)
[snip]
Gene seems to be saying elsethread that in his real code he might
be initializing from something that isn't in order. But assuming he
Yup.
could put it in order before initializing the set, then yes, it seems
Why bother? SortedSet does the work for me.
If you care enough about performance to have put some effort
into benchmarking various approaches, I'd have thought you'd be
interested in one that seems to be significantly faster and almost
as simple to set up and use. (Probably -- I guess it depends on
how, in your real code, you'll be initializing the set.)
I'm not unsympathetic, though, to a desire to move on once
an acceptable solution has been found. "Just sayin'", maybe.
On 6 Jul 2011 16:59:57 GMT, (e-mail address removed)
[snip]
Gene seems to be saying elsethread that in his real code he might
be initializing from something that isn't in order. But assuming he
Yup.
could put it in order before initializing the set, then yes, it seems
Why bother? SortedSet does the work for me.
If you care enough about performance to have put some effort
into benchmarking various approaches, I'd have thought you'd be
interested in one that seems to be significantly faster and almost
as simple to set up and use. (Probably -- I guess it depends on
how, in your real code, you'll be initializing the set.)
But why should I write code to sort something when SortedSet will
do it for me? Plus, if I output the contents of the set, having it in
sorted order makes more sense.
Remember that I am learning my way around Java. You may already
know how to do it quickly. For me, it would be another thing to find
and figure out. In time, in time.
I'm not unsympathetic, though, to a desire to move on once
an acceptable solution has been found. "Just sayin'", maybe.
Micro-optimisation is a nasty sin.
[snip]
Micro-optimisation is a nasty sin.
Yeah, yeah .... I guess it just seems strange to me that you went to
all the trouble of writing code to benchmark various approaches --
suggesting that sometimes you *do* engage in micro-optimization --
but are resistant to trying one more approach that (in my tests
anyway) sometimes reduced execution time by almost 50%. Just sayin',
"whatever", .... ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.