|Java to Python tranlation firstname.lastname@example.org (root) (2007-02-05)|
|Re: Java to Python tranlation email@example.com (2007-02-06)|
|Re: Java to Python tranlation firstname.lastname@example.org (Robert Brown) (2007-02-16)|
|From:||email@example.com (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)|
|Date:||6 Feb 2007 16:06:56 -0500|
|Organization:||Department of Computer Science, University of Copenhagen|
|Posted-Date:||06 Feb 2007 16:06:55 EST|
root <firstname.lastname@example.org> writes:
> I'm interested to the complementar problem:
> from Python to Java translation.
One major problem going this way is that Python is dynamically typed
where Java is statically typed. This means that you will need to
check for correct types at every operation instead of at compile time.
One way that might work is to let every variable be of type Object and
downcast before every operation. Numbers and other values that are
not objects in Java would have to be boxed as objects and values
extracted from the objects before operating on them, then finally
boxing the result.
Return to the
Search the comp.compilers archives again.