package hush.dv.api;
class obscure {
public static boolean nobug;
protected final int ERROR = 1;
_self is the C++ peer object
public int _self;
Returns: _self
public int id() { return _self; }
public void bug(String s) {
if (! nobug)
System.err.println("BUG: " + s);
}
public void dispatch(int x) {
Event ev = new Event(x);
dispatch(ev);
//System.out.println( "Handler " + _event.type() );
}
public Event dispatch(event ev) {
bug("Error Obscure.dispatch");
return (Event) ev;
}
// Factory
public static Item new_item(int x) {
Item it = new Item(); it._self = x;
return it;
}
}; |
Hush Online Technology
hush@cs.vu.nl
11/03/98 |
|
|