Changes between Version 87 and Version 88 of j2p


Ignore:
Timestamp:
06/10/24 10:02:59 (5 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v87 v88  
    7878
    7979{{{#!td style="background: #fee"
    80 If you have two methods overloading each other, and both methods end up with the same signature in python, then plum will NOT warn you and just use the last definition only. Therefore your translated code will not work as expected. An example is if your code has both {{{get(BigInteger x)}}} and {{{get(long x)}}}, both will be translated to {{{def get(self, x:int)}}} and plum will use only the last one defined.
     80If you have two methods overloading each other, and both methods end up with the same signature in python, then plum will NOT warn you and just use the last definition only. Therefore your translated code will not work as expected. An example is if your code has both {{{get(BigInteger x)}}} and {{{get(long x)}}}, both will be translated to {{{@dispatch def get(self, x:int)}}} and plum will use only the last one defined.
    8181}}}
    8282