4 ms·
Why not just have a binary tree of method calls with the leaf nodes containing your actual code ? - that way you could easily have as many methods as you wanted
by ig1 15y ago
Why not just have a binary tree of method calls with the leaf nodes containing your actual code ? - that way you could easily have as many methods as you wanted, and if it's auto-generated anyway it wouldn't be much extra work.
- adrianmsmith 15y ago1) It's difficult to know how long a method will be when it's compiled. Basically you have to compile it to find out. The 64k limit is on the generated byte-code, not on the source. 2) Why bother? I mean generating C (in my case) was so much easier, a simpler solution (not using a tree) is bound to have less bugs, be easier to maintain etc. I mean this is a fundamentally ridiculous limitation. One can work around it with a large amount of effort, but it shouldn't be necessary.