[mtasc] checking for constructor name
Ralf Bokelberg
info at bokelberg.de
Tue Jun 7 12:58:17 CEST 2005
Every so often my code breaks because my constructor is named different
from my class. This happens whenever i rename a class but forget to
rename the constructor. These kind of bug is very hard to find.
Today i had the idea to let mtasc do it, and it actually works quite
good. All i do is to compare every method starting with an uppercase
letter to the name of the current class. Whenever they are different,
mtasc spits out a warning.
You can find the code at http://osflash.org/doku.php?id=mtaschacks
Cheers,
Ralf
More information about the mtasc
mailing list