|
![](/i/fill.gif) |
On 4/10/2012 7:33, Invisible wrote:
> Have your forgotten? This is Java. 2 is not an object. Therefore it can
> never be passed to something expecting Object.
At least they figured out auto-boxing 95% of the way.
> I almost feel like I should be writing a "compiler" that takes the 3-line
> version saying what data structure I want, and generates the 5-file 44-line
> monstrosity that the Java compiler expects. It would save me a bunch of
> typing, and then I could go in and write the actual code that turns it into
> more than just a dumb data structure...
Ah, good old code generation. Hope you don't have to track down a bug in the
generated code anywhere.
--
Darren New, San Diego CA, USA (PST)
"Oh no! We're out of code juice!"
"Don't panic. There's beans and filters
in the cabinet."
Post a reply to this message
|
![](/i/fill.gif) |