home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 892 of 2,753   
   Torben =?iso-8859-1?Q?=C6gidius?= M to root   
   Re: Java to Python tranlation   
   06 Feb 07 16:06:56   
   
   From: torbenm@app-7.diku.dk   
      
   root  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.   
      
   	Torben   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca