Thread overview | |||||
---|---|---|---|---|---|
|
December 04, 2009 [Issue 3571] New: super description has a duplicated sentence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3571 Summary: super description has a duplicated sentence Product: D Version: 1.051 Platform: All URL: http://www.digitalmars.com/d/1.0/expression.html#Condi tionalExpression OS/Version: All Status: NEW Keywords: spec Severity: trivial Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: llucax@gmail.com --- Comment #0 from Leandro Lucarella <llucax@gmail.com> 2009-12-03 18:48:51 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 06, 2009 [Issue 3571] super description has a duplicated sentence | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | http://d.puremagic.com/issues/show_bug.cgi?id=3571 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2009-12-06 01:12:26 PST --- Fixed -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 08, 2009 [Issue 3571] super description has a duplicated sentence | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | http://d.puremagic.com/issues/show_bug.cgi?id=3571 --- Comment #2 from Leandro Lucarella <llucax@gmail.com> 2009-12-08 13:29:13 PST --- http://www.dsource.org/projects/phobos/changeset/1365 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation