www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Error: function object.Object.dispose () does not match parameter

reply Long Chang <changedalone gmail.com> writes:
tango trunk add a method name dispose to Object. now build dmd-win32 will
throw this:

custom\TableCursor.d(211): Error: function object.Object.dispose () does not
match parameter types (Event)
custom\TableCursor.d(211): Error: expected 0 arguments, not 1 for
non-variadic function type void()


rename all the dispose  to Dispose will fiex this issure.
Nov 24 2009
parent Jacob Carlborg <doob me.com> writes:
On 11/24/09 12:49, Long Chang wrote:
 tango trunk add a method name dispose to Object. now build dmd-win32
 will throw this:

 custom\TableCursor.d(211): Error: function object.Object.dispose () does
 not match parameter types (Event)
 custom\TableCursor.d(211): Error: expected 0 arguments, not 1 for
 non-variadic function type void()


 rename all the dispose  to Dispose will fiex this issure.
It would be nice to have the dispose methods to be called automatically. What about adding "alias super.dispose dispose" or something to overload the dispose method.
Nov 24 2009