Another option is an accessor class: ``` class A { protected int b; package class Accessor { int b(){ return this.outer.b; } } } void f1() { A a=new A; a.b=2; auto aa=a.new Accessor; assert(aa.b==2); } ```