|
Re: Porting to Java: enums, clocks, and multi-files
Quote:
Originally Posted by byteit101
I was porting some code to Java (a new ZomB interface), and have come across only a few small snags:
1. How do you do enum's? I am getting "enums are not supported in source 1.3 use src 5 to enable" and my switch statement is not working either
2. What is the equivalent of the C++ GetClock() which returns seconds since boot. Currently i am using Timer.getUsClock() / 1000000f but it is kinda bulky
3. Can you turn off the error that classes need to be in their own files? I am hoping I can have a single file for a bunch of public classes
|
I really don't see the point in having all the classes in one file... It just nasty to look at... and try consts
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
|