Closed GoogleCodeExporter closed 9 years ago
Sorry, accidentally posted this as a 'defect'
Original comment by sam.bar...@gmail.com
on 24 Oct 2007 at 7:47
I don't understand what the benefit of doing this is. Is your goal to make it
so
that your own forwarding object won't have to override-and-narrow the
delegate() method?
I think your suggestion would make matters worse. To have any benefit, we'd
have to
make ALL the forwarding classes generic, so these would now have 2-3 type
parameters
each, and make T bounded. Then just *using* a forwarding collection will become
suddenly more annoying.
I think that overriding-to-narrow is the most practical thing we can do. I will
reopen this if someone points out something big I'm missing.
Original comment by kevin...@gmail.com
on 24 Oct 2007 at 8:12
You're right, I should've looked at some of the subclasses of ForwardingObject
before posting. Good stuff.
Original comment by sam.bar...@gmail.com
on 24 Oct 2007 at 8:17
Original issue reported on code.google.com by
sam.bar...@gmail.com
on 24 Oct 2007 at 7:46