Bug 3571 – super description has a duplicated sentence

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2009-12-03T18:48:00Z
Last change time
2014-04-18T09:12:03Z
Keywords
spec
Assigned to
nobody
Creator
leandro.lucarella

Comments

Comment #0 by leandro.lucarella — 2009-12-03T18:48:51Z
This is what the specs says about the super expression: super super is identical to this, except that it is cast to this's base class. It is an error if there is no base class. It is an error to use super within a struct member function. (Only class Object has no base class.) super is not allowed in struct member functions. If a member function is called with an explicit reference to super, a non-virtual call is made. Note that using super in structs is forbidden is said twice (once before the clarification in parenthesis, and one after). Maybe this can be rephrased as: super super is identical to this, except that it is cast to this's base class. It is an error if there is no base class (note that only class Object has no base class). It is an error to use super within a struct member function. If a member function is called with an explicit reference to super, a non-virtual call is made. This goes for D2 too.
Comment #1 by bugzilla — 2009-12-06T01:12:26Z
Fixed
Comment #2 by leandro.lucarella — 2009-12-08T13:29:13Z