On Tue, 24 Nov 2009 06:55:44 -0500, Long Chang <[email protected]>
wrote:
public interface Listener {
void handleEvent (int);
}
void main(){
void print(int evt){
}
Listener listener = new class() Listener {
public void handleEvent(int evt) {
.print(evt);
}
};
}
-----------------------------------------------------------------------------------
x.d(20): Error: undefined identifier module x.print
x.d(20): Error: function expected before (), not module x.print of type
void
It's the . before the print. It means "only look in the global scope".
-Steve