Changes between Version 101 and Version 102 of j2p


Ignore:
Timestamp:
07/01/24 16:38:10 (8 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v101 v102  
    111111
    112112==== Inner classes
    113 Inner classes (classes inside classes) are **not supported**. This includes anonymous inner classes. You can not import, call or use inner classes. Inner classes can not be translated. This is for many reasons but the brief summary:
     113Inner classes (classes inside classes) have very limited support.
     114
     115When an inner class translator is needed, eg A$B where B is an inner class of A, the translator searches for a translator for class A/B where A is used as a *directory*. If it is found, then that translator B is used.
     116
     117Otherwise, no support is available. This includes anonymous inner classes. You can not import, call or use inner classes. This is for many reasons but the brief summary:
    114118* The useful variant of inner class is the non-static inner class. This class can access fields in the enclosing class.
    115119* Python does not support accessing fields of the enclosing class unless some tricks are applied. But these tricks would break uniformity of constructors.