digitalmars.D.bugs - bad error message
- John Demme (21/21) Jun 06 2005 OK... this one really pisses me off:
- Thomas Kuehne (11/32) Jun 22 2005 -----BEGIN PGP SIGNED MESSAGE-----
OK... this one really pisses me off: "cont.d(12): cannot create instance of abstract class ArrayList" Why doesn't DMD tell me which methods aren't implemented?!?!?!?! To clarify, the structure is something like this: abstract class List(V) { abstract V get(int i); } class ArrayList(V): List!(V) { } void main() { alias ArrayList!(int) IntList; IntList lst = new IntList; } That error is produced if I try to compile the above code (unless there's a typo). I'd rather it say: "cannot create instance of abstract class ArrayList: method get(int i) not implemented." Walter, if this is a quickie, I'd appreciate if you could do it soon. If it's not a quickie, don't worry about it. Thanks John Demme
Jun 06 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Demme schrieb am Tue, 07 Jun 2005 00:35:41 -0400:OK... this one really pisses me off: "cont.d(12): cannot create instance of abstract class ArrayList" Why doesn't DMD tell me which methods aren't implemented?!?!?!?! To clarify, the structure is something like this: abstract class List(V) { abstract V get(int i); } class ArrayList(V): List!(V) { } void main() { alias ArrayList!(int) IntList; IntList lst = new IntList; } That error is produced if I try to compile the above code (unless there's a typo). I'd rather it say: "cannot create instance of abstract class ArrayList: method get(int i) not implemented." Walter, if this is a quickie, I'd appreciate if you could do it soon. If it's not a quickie, don't worry about it. Thanks John DemmeAdded to DStress as http://dstress.kuehne.cn/nocompile/a/abstract_14.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCujMW3w+/yD4P9tIRAmuXAJ4m4z7wFLfT26ZQBTa190bdk7aI1ACfZVsv Hc6XhxGFLmgIn/qseoidwKc= =ahKi -----END PGP SIGNATURE-----
Jun 22 2005