Changes between Version 87 and Version 88 of j2p
- Timestamp:
- 06/10/24 10:02:59 (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v87 v88 78 78 79 79 {{{#!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.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 {{{@dispatch def get(self, x:int)}}} and plum will use only the last one defined. 81 81 }}} 82 82