例如在method中调用method1! t0 u5 F8 F$ _
method:+ R& W/ y3 k! d8 u a$ [6 s
is
5 S+ u$ r7 s; k# zdo
0 P: c$ B" e4 Z5 x* v ....., U# N6 b) a5 K O% t2 V
method1;
, j7 d" T4 s! ?$ y, I' M ....
9 ]/ ]1 z, C3 }5 y( P+ t& Y7 L' z ....3 F t4 G& W. H1 C: W9 R
end;
$ j9 _' i) s: P2 d& a( B- G/ C
% F+ e9 m, w$ G0 k @9 t- J& s7 ~如果这样写的话,肯定是要method1 执行完后才会执行method1 后面的程序,method1 就相当于是method的一部分;现在仍想用method调用method1 ,但想实现先执行method中的语句,并完成对method1的调用,但method1会在method运行完后再执行,method1 虽由method调用,实际执行独立于method之外。请问是否可以实现? |