894 – base class with implemented abstract method problem

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 894 - base class with implemented abstract method problem
Summary: base class with implemented abstract method problem
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL: http://dstress.kuehne.cn/nocompile/a/...
Keywords: accepts-invalid
Depends on:
Blocks:
Reported: 2007年01月27日 01:39 UTC by Brad Roberts
Modified: 2014年02月15日 13:12 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Brad Roberts 2007年01月27日 01:39:11 UTC
http://dstress.kuehne.cn/nocompile/a/abstract_15.d
When a base class has an abstract method with an implementation, derived classes are still supposed to be required to override those methods according to the spec:
Abstract Attribute
... snip ...
Functions declared as abstract can still have function bodies. This is so that even though they must be overridden, they can still provide 'base class functionality.'
Comment 1 Walter Bright 2007年02月12日 03:42:45 UTC
Fixed DMD 1.005


AltStyle によって変換されたページ (->オリジナル) /