Satisfying interface requirements
Jason House
jason.james.house at gmail.com
Thu Jul 26 13:13:38 PDT 2007
Attached is a simple example that demonstrates my problem (with dmd 1.018). It seems like inheriting from a class that contains functions that would satisfy an interface does not work. Usually, I work around this by just adding a manual call to super's copy. Unfortunately, this only works if super's member function is not final. Any tips on how to work around this?
If line 7 is commented out:
test.d(6): class test.foo interface function bar.start is not implemented
If line 7 is present:
test.d(7): function test.foo.start cannot override final function tango.core.Thread.Thread.start
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.d
Type: application/octet-stream
Size: 145 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20070726/900182d5/attachment.obj
More information about the Digitalmars-d-learn
mailing list