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:
--001636c93195f7fd3204791c8991
Content-Type: text/plain; charset=ISO-8859-1

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.

--001636c93195f7fd3204791c8991
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

tango trunk add a method name dispose to Object. now build dmd-win32 will t=
hrow this:<br><br>custom\TableCursor.d(211): Error: function object.Object.=
dispose () does not match parameter types (Event)<br>custom\TableCursor.d(2=
11): Error: expected 0 arguments, not 1 for non-variadic function type void=
()<br>
<br><br>rename all the dispose=A0 to Dispose will fiex this issure.<br><br>

--001636c93195f7fd3204791c8991--
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