comparison dwt/events/TypedEvent.d @ 86:bef1ed4ebc50

again copied events from dwt-linux
author Frank Benoit <benoit@tionex.de>
date Wed, 06 Feb 2008 21:33:24 +0100
parents 9a64a7781bab
children ab60f3309436
comparison
equal deleted inserted replaced
85:a155324d7a44 86:bef1ed4ebc50
96 * Returns a string containing a concise, human-readable 96 * Returns a string containing a concise, human-readable
97 * description of the receiver. 97 * description of the receiver.
98 * 98 *
99 * @return a string representation of the event 99 * @return a string representation of the event
100 */ 100 */
101 override public char[] toString() { 101 public override char[] toString() {
102 return Format( "{}{{{} time={} data={}}", widget.toString(), time, data.toString() ); 102 char[] str_widget = widget is null ? "null" : widget.toString;
103 char[] str_data = data is null ? "null" : data.toString;
104 return Format( "{}{{time={} data={}}", str_widget, time, str_data );
103 } 105 }
104 } 106 }